You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MovieFinder/navigation/LinkingConfiguration.ts

48 lines
1.3 KiB

/**
* Learn more about deep linking with React Navigation
* https://reactnavigation.org/docs/deep-linking
* https://reactnavigation.org/docs/configuring-links
*/
import {LinkingOptions} from '@react-navigation/native';
import * as Linking from 'expo-linking';
import {RootStackParamList} from '../types';
const linking: LinkingOptions<RootStackParamList> = {
prefixes: [Linking.createURL('/')],
config: {
screens: {
Root: {
screens: {
WatchLater: {
screens: {
WatchLaterScreen: 'WatchLater',
},
},
Home: {
screens: {
HomeScreen: 'Home',
},
},
Favorite: {
screens: {
FavoriteScreen: 'Favorite',
},
},
Info: {
screens: {
FavoriteScreen: 'InfoScreen',
},
},
},
},
Modal: 'modal',
NotFound: '*',
},
},
};
export default linking;