File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -7,21 +7,23 @@ install();
77require ( './src/polyfills/textdecoder-polyfill' ) ;
88
99// RN still doesn't support full spec of Intl API
10+ // Don't remove -force from these because detection is VERY slow on low-end Android.
11+ // https://github.com/formatjs/formatjs/issues/4463#issuecomment-2176070577
1012if ( ! Intl . Locale ) {
11- require ( '@formatjs/intl-locale/polyfill' ) ;
13+ require ( '@formatjs/intl-locale/polyfill-force ' ) ;
1214}
1315if ( ! NumberFormat . formatToParts ) {
14- require ( '@formatjs/intl-numberformat/polyfill' ) ;
16+ require ( '@formatjs/intl-numberformat/polyfill-force ' ) ;
1517 require ( '@formatjs/intl-numberformat/locale-data/en' ) ;
1618 require ( '@formatjs/intl-numberformat/locale-data/ru' ) ;
1719}
1820if ( ! Intl . PluralRules ) {
19- require ( '@formatjs/intl-pluralrules/polyfill' ) ;
21+ require ( '@formatjs/intl-pluralrules/polyfill-force ' ) ;
2022 require ( '@formatjs/intl-pluralrules/locale-data/en' ) ;
2123 require ( '@formatjs/intl-pluralrules/locale-data/ru' ) ;
2224}
2325if ( ! Intl . RelativeTimeFormat ) {
24- require ( '@formatjs/intl-relativetimeformat/polyfill' ) ;
26+ require ( '@formatjs/intl-relativetimeformat/polyfill-force ' ) ;
2527 require ( '@formatjs/intl-relativetimeformat/locale-data/en' ) ;
2628 require ( '@formatjs/intl-relativetimeformat/locale-data/ru' ) ;
2729}
You can’t perform that action at this time.
0 commit comments