aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-react-native-web/apps/native/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-react-native-web/apps/native/index.js')
-rw-r--r--examples/with-react-native-web/apps/native/index.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/examples/with-react-native-web/apps/native/index.js b/examples/with-react-native-web/apps/native/index.js
new file mode 100644
index 0000000..828b356
--- /dev/null
+++ b/examples/with-react-native-web/apps/native/index.js
@@ -0,0 +1,8 @@
+import { registerRootComponent } from "expo";
+
+import App from "./App";
+
+// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
+// It also ensures that whether you load the app in Expo Go or in a native build,
+// the environment is set up appropriately
+registerRootComponent(App);