QuickWrap
Deep Linking
1. Open app.json and change your scheme there.
src/config/linking.ts
1
2
3
4
5
{
"expo": {
"scheme": "quickwrap" // <-- Change this,
}
}
2. Now open terminal and run
terminal
1
npx expo prebuild --clean
3. Open src/config/linking.ts and Add your screens.
src/config/linking.ts
1
2
3
4
5
screens: {
Home: 'home',
Settings: 'settings/:id',
... // More screens here
},
4. Use useDeepLinking hook to configure deeplink. and use handleDeepLink Listener functions to parse data
Page.tsx
useDeepLinking()
5. Run the following command to test it
Android
terminal
adb shell am start -W -a android.intent.action.VIEW -d "[YOUR_SCHEME]://settings/123"
iOS
terminal
xcrun simctl openurl booted quickwrap://settings/123