-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.ts
24 lines (20 loc) · 799 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {LogBox} from 'react-native';
import {LoveStoryApp} from './app/initialize';
import {Navigation} from 'react-native-navigation';
import 'react-native-gesture-handler';
declare const global: {HermesInternal: null | {}};
if (__DEV__) {
LogBox.ignoreLogs(['new NativeEventEmitter']);
}
if (global.HermesInternal) {
// Polyfills required to use Intl with Hermes engine
require('@formatjs/intl-getcanonicallocales/polyfill');
require('@formatjs/intl-locale/polyfill');
require('@formatjs/intl-pluralrules/polyfill');
require('@formatjs/intl-numberformat/polyfill');
require('@formatjs/intl-datetimeformat/polyfill');
require('@formatjs/intl-datetimeformat/add-golden-tz');
}
Navigation.events().registerAppLaunchedListener(async () => {
LoveStoryApp();
});