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 | Basic React Navigation mapping (link.pathname -> screen) | You use React Navigation and want minimal mapping |
react-navigation-advanced | React Navigation + auth gate + split responsibility between SDK and linking | You need advanced deep-link orchestration with protected screens |
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.