React Native SDK Examples
After configuring Detour credentials and platform integration, try one of the runnable examples from the RN SDK repository.
Click any example name below to open its README.md on GitHub, where you can explore project structure, setup steps, and example code.
Example catalog
| Example | What it shows | Recommended when |
|---|---|---|
expo-bare | Minimal provider + context usage without router coupling | You want a quick SDK smoke test |
expo-router | Basic Expo Router flow with DetourProvider routing from context | You use Expo Router and want minimal setup |
expo-router-native-intent | createDetourNativeIntentHandler in resolve mode + linkProcessingMode: 'deferred-only' | You want native-intent-based routing and short-link resolution in intent layer |
expo-router-advanced | Auth-gated flow with pending route resume and custom native-intent coexistence | You need guarded routes or sign-in-first deep link handling |
react-navigation | Minimal React Navigation setup using the Detour linking adapter (Detour.getInitialURL + addEventListener) | You use React Navigation and want minimal setup |
react-navigation-advanced | React Navigation linking adapter with auth + onboarding gated deep linking and pending-link resume | You need guarded/onboarded routes with deferred and runtime links |
Recommended user path
- Complete SDK Installation.
- Read SDK Usage for API model.
- Start from the closest example and adapt route mapping/auth flow.
- Validate behavior with Testing & Troubleshooting.