This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<intent-filter android:label="@string/filter_title_viewproducts" android:autoVerify="true"> | |
<action android:name="android.intent.action.VIEW" /> | |
<category android:name="android.intent.category.DEFAULT" /> | |
<category android:name="android.intent.category.BROWSABLE" /> | |
<!-- Handle urls starting with "http://www.kyadav.com/users/" --> | |
<!-- Note: In Android you have to define every DeepLink path in pathPrefix variable | |
like I have /users/ | |
if you have more like /profile/test/ | |
then add one more data tag <data android:scheme="https" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
useEffect(() => { | |
AppState.addEventListener("change", _handleAppStateChange); | |
Linking.getInitialURL().then((url) => { | |
if (url) { | |
const route = url.replace(/.*?:\/\//g, '').split('?'); | |
//if app is open first time and deep link path is initial route | |
if(url.includes('/jobs-') && appState.current === "active"){ | |
const job = route[0].substring(route[0].lastIndexOf('/') + 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import linking from "./src/navigation/Linking"; | |
import { | |
Colors, | |
} from 'react-native/Libraries/NewAppScreen'; | |
import { navigationRef } from './src/navigation/RootNavigaton' | |
axios.defaults.baseURL = | |
'https://europe-west1-socialape-d081e.cloudfunctions.net/api'; | |
const App = (props:any) => { | |
const isDarkMode = useColorScheme() === 'dark'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { LinkingOptions } from "@react-navigation/native"; | |
const config = { | |
screens: { | |
BottomTabs: { | |
path: 'bottom_tabs', | |
screens: { | |
Jobs: { | |
path: 'jobs', | |
exact: true, |