about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--index.js6
-rw-r--r--index.web.js7
2 files changed, 9 insertions, 4 deletions
diff --git a/index.js b/index.js
index 4faf36dc4..4fc95bd17 100644
--- a/index.js
+++ b/index.js
@@ -3,10 +3,12 @@ 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 '#/platform/polyfills'
 import {registerRootComponent} from 'expo'
+import {doPolyfill} from '#/lib/api/api-polyfill'
+doPolyfill()
 
-import App from './src/App'
+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,
diff --git a/index.web.js b/index.web.js
index 4ceb656fb..4dee831cd 100644
--- a/index.web.js
+++ b/index.web.js
@@ -1,4 +1,7 @@
-import 'platform/polyfills'
+import '#/platform/polyfills'
 import {registerRootComponent} from 'expo'
-import App from './src/App'
+import {doPolyfill} from '#/lib/api/api-polyfill'
+import App from '#/App'
+
+doPolyfill()
 registerRootComponent(App)