npx install uri-scheme
npx uri-scheme [options] [command]
npx uri-scheme list
npx uri-scheme open myapp://app/home --ios
open myapp://app/setting --android
open myapp://app/profile/123 --android
open http://expo.com --android
npx uri-scheme add com.app.myapp
npx uri-scheme remove com.app.myapp
const config = {
screens: {
HomeScreen: {
path: 'home',
},
SettingsScreen: {
path: 'setting',
},
ProfileScreen: {
path: 'profile/:id',
parse: {
id: (id: any) => `$${id}`,
},
},
},
};
const Linking = {
prefixes: ['myapp://app'],
config,
};
export default Linking;