Deep Link Setup
App scheme: $1 (e.g., myapp → myapp://)
- Detect navigation library:
cat package.json | grep -E '"@react-navigation"|"expo-router"|"react-native-navigation"'
cat app.json 2>/dev/null | grep -E "scheme\|intentFilters\|associatedDomains"
- For Expo Router (file-based):
- Check
app.jsonforscheme - Review
app/directory structure for dynamic routes - Generate
app/+not-found.tsxif missing
- For React Navigation:
- Review
linkingconfig - Ensure all screens are mapped
- Check for missing parameter types
- Universal Links / App Links:
apple-app-site-associationfor iOSassetlinks.jsonfor Android- Generate templates for both
- Testing:
# iOS Simulator
xcrun simctl openurl booted "$1://path/to/screen"
# Android Emulator
adb shell am start -W -a android.intent.action.VIEW -d "$1://path/to/screen"
- Generate a deeplink test matrix - all routes with test URLs.