From 3ca4bd805a0efa35a9b1d3c4b0a8cebb6cbdeef9 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 29 Nov 2023 18:00:13 -0600 Subject: [PATCH] Re-enable fetch monkey-patch (#2036) * Re-enable fetch monkey-patch * Reorder --- index.js | 6 ++++-- index.web.js | 7 +++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/index.js b/index.js index 4faf36dc..4fc95bd1 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 4ceb656f..4dee831c 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)