Created
April 16, 2024 10:08
-
-
Save bryanltobing/0559a90089f5e79d6a750e74970aa185 to your computer and use it in GitHub Desktop.
Changing Expo Router Entry Point
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"main": "index.tsx", | |
} |
This is useful if you want to set initiator or side effect before entering expo router
+ import "react-native-gesture-handler";
import 'expo-router/entry';
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First set
package.json
main toindex.tsx
Then create
index.tsx
file the samelevel
as yourpackage.json
and inside
index.tsx