Get Web compiling for expo

This commit is contained in:
Paul Frazee
2023-03-08 17:59:25 -06:00
parent 2c41458963
commit 0c7f61046c
3 changed files with 28 additions and 133 deletions
+2 -12
View File
@@ -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)