fix(rn,polyfills) use core-js for promise polyfills

We use the same on the web, on browsers that don't support them.
This commit is contained in:
Saúl Ibarra Corretgé
2025-02-04 09:48:43 +01:00
committed by Saúl Ibarra Corretgé
parent aea9c5e79e
commit e9a8fd5392
3 changed files with 129 additions and 182 deletions

305
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -75,8 +75,6 @@
"null-loader": "4.0.1",
"optional-require": "1.0.3",
"pixelmatch": "5.3.0",
"promise.allsettled": "1.0.4",
"promise.withresolvers": "1.0.3",
"punycode": "2.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",

View File

@@ -4,8 +4,8 @@ import { NativeModules, Platform } from 'react-native';
import BackgroundTimer from 'react-native-background-timer';
import { TextDecoder, TextEncoder } from 'text-encoding';
import 'promise.allsettled/auto'; // Promise.allSettled.
import 'promise.withresolvers/auto'; // Promise.withResolvers.
import 'core-js/features/promise/all-settled'; // Promise.allSettled.
import 'core-js/features/promise/with-resolvers'; // Promise.withResolvers.
import 'react-native-url-polyfill/auto'; // Complete URL polyfill.
import Storage from './Storage';