about summary refs log tree commit diff
path: root/index.web.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.web.js')
-rw-r--r--index.web.js14
1 files changed, 2 insertions, 12 deletions
diff --git a/index.web.js b/index.web.js
index f443dbb6d..4ceb656fb 100644
--- a/index.web.js
+++ b/index.web.js
@@ -1,14 +1,4 @@
-// index.web.js
-
 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'
-
-// register the app
-AppRegistry.registerComponent(appName, () => App)
-
-AppRegistry.runApplication(appName, {
-  initialProps: {},
-  rootTag: document.getElementById('app-root'),
-})
+registerRootComponent(App)