Skip to content

Commit 29475e5

Browse files
committed
Initial commit
Generated by create-expo-app 3.5.3.
0 parents  commit 29475e5

13 files changed

Lines changed: 8903 additions & 0 deletions

.gitignore

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files
2+
3+
# dependencies
4+
node_modules/
5+
6+
# Expo
7+
.expo/
8+
dist/
9+
web-build/
10+
expo-env.d.ts
11+
12+
# Native
13+
*.orig.*
14+
*.jks
15+
*.p8
16+
*.p12
17+
*.key
18+
*.mobileprovision
19+
20+
# Metro
21+
.metro-health-check*
22+
23+
# debug
24+
npm-debug.*
25+
yarn-debug.*
26+
yarn-error.*
27+
28+
# macOS
29+
.DS_Store
30+
*.pem
31+
32+
# local env files
33+
.env*.local
34+
35+
# typescript
36+
*.tsbuildinfo
37+
38+
app-example

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Demo for handling deep links after auth in React Navigation
2+
3+
This repo demonstrates how to handle deep links that require authentication using React Navigation.
4+
5+
It has 3 approaches:
6+
7+
- [`main`](https://github.com/callstackincubator/react-navigation-deep-link-auth-demo) branch - built-in unstable API (`UNSTABLE_routeNamesChangeBehavior: 'lastUnhandled'`)
8+
- [`remount-container`](https://github.com/callstackincubator/react-navigation-deep-link-auth-demo/tree/remount-container) branch - remounting the navigation container after auth
9+
- [`manual-navigate`](https://github.com/callstackincubator/react-navigation-deep-link-auth-demo/tree/manual-navigate) branch - manually navigate to correct screen after auth

app.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"expo": {
3+
"name": "auth-deep-link-demo",
4+
"slug": "auth-deep-link-demo",
5+
"version": "1.0.0",
6+
"orientation": "default",
7+
"icon": "./assets/icon.png",
8+
"userInterfaceStyle": "automatic",
9+
"newArchEnabled": true,
10+
"scheme": "authdeeplinkdemo",
11+
"ios": {
12+
"supportsTablet": true,
13+
"bundleIdentifier": "com.authdeeplinkdemo"
14+
},
15+
"android": {
16+
"adaptiveIcon": {
17+
"foregroundImage": "./assets/adaptive-icon.png",
18+
"backgroundColor": "#ffffff"
19+
},
20+
"package": "com.authdeeplinkdemo"
21+
},
22+
"web": {
23+
"favicon": "./assets/favicon.png"
24+
}
25+
}
26+
}

assets/adaptive-icon.png

17.1 KB
Loading

assets/favicon.png

1.43 KB
Loading

assets/icon.png

21.9 KB
Loading

assets/splash-icon.png

17.1 KB
Loading

index.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import '@expo/metro-runtime'; // Necessary for Fast Refresh on Web
2+
import { registerRootComponent } from 'expo';
3+
4+
import { App } from './src/App';
5+
6+
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
7+
// It also ensures that whether you load the app in Expo Go or in a native build,
8+
// the environment is set up appropriately
9+
registerRootComponent(App);

0 commit comments

Comments
 (0)