2021-08-16 07:50:50 +00:00
|
|
|
/**
|
|
|
|
* Learn more about deep linking with React Navigation
|
|
|
|
* https://reactnavigation.org/docs/deep-linking
|
|
|
|
* https://reactnavigation.org/docs/configuring-links
|
|
|
|
*/
|
|
|
|
|
2021-08-22 04:30:04 +00:00
|
|
|
import { LinkingOptions } from '@react-navigation/native';
|
2021-08-16 07:50:50 +00:00
|
|
|
import * as Linking from 'expo-linking';
|
|
|
|
|
2021-08-22 04:30:04 +00:00
|
|
|
import { RootStackParamList } from '../types';
|
|
|
|
|
|
|
|
const linking: LinkingOptions<RootStackParamList> = {
|
2021-08-16 07:50:50 +00:00
|
|
|
prefixes: [Linking.makeUrl('/')],
|
|
|
|
config: {
|
|
|
|
screens: {
|
|
|
|
Root: {
|
|
|
|
screens: {
|
2021-08-21 13:05:22 +00:00
|
|
|
Home: {
|
2021-08-17 22:00:09 +00:00
|
|
|
screens: {
|
2021-08-21 13:05:22 +00:00
|
|
|
HomeScreen: 'home',
|
2021-08-17 22:00:09 +00:00
|
|
|
},
|
|
|
|
},
|
2021-08-16 07:50:50 +00:00
|
|
|
Trip: {
|
|
|
|
screens: {
|
2021-08-20 08:41:16 +00:00
|
|
|
TripScreen: 'trip',
|
2021-08-16 07:50:50 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
Settings: {
|
|
|
|
screens: {
|
2021-08-20 08:41:16 +00:00
|
|
|
SettingsScreen: 'settings',
|
2021-08-16 07:50:50 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-08-22 04:30:04 +00:00
|
|
|
Modal: 'modal',
|
2021-08-16 07:50:50 +00:00
|
|
|
NotFound: '*',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
2021-08-22 04:30:04 +00:00
|
|
|
|
|
|
|
export default linking;
|