about summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/index.js b/index.js
index 1a6b21964..4faf36dc4 100644
--- a/index.js
+++ b/index.js
@@ -1,10 +1,14 @@
-/**
- * @format
- */
+import 'react-native-gesture-handler' // must be first
+
+import {LogBox} from 'react-native'
+LogBox.ignoreLogs(['Require cycle:']) // suppress require-cycle warnings, it's fine
 
 import 'platform/polyfills'
-import {AppRegistry} from 'react-native'
+import {registerRootComponent} from 'expo'
+
 import App from './src/App'
-import {name as appName} from './src/app.json'
 
-AppRegistry.registerComponent(appName, () => 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)