Skip to content

Commit fe82fdb

Browse files
authored
fix(boilerplate): main entry point for monorepo (#2881 by @frankcalise)
1 parent de69eb1 commit fe82fdb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

boilerplate/App.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import "@expo/metro-runtime"
2+
import { registerRootComponent } from "expo"
23
import * as SplashScreen from "expo-splash-screen"
34
import App from "@/app"
45

@@ -8,4 +9,7 @@ function IgniteApp() {
89
return <App hideSplashScreen={SplashScreen.hideAsync} />
910
}
1011

11-
export default IgniteApp
12+
// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
13+
// It also ensures that whether you load the app in Expo Go or in a native build,
14+
// the environment is set up appropriately
15+
registerRootComponent(IgniteApp)

boilerplate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "hello-world",
33
"version": "0.0.1",
44
"private": true,
5-
"main": "expo/AppEntry.js",
5+
"main": "App.tsx",
66
"scripts": {
77
"compile": "tsc --noEmit -p . --pretty",
88
"format": "eslint . --fix",

0 commit comments

Comments
 (0)