-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathindex.js
40 lines (34 loc) · 1.49 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import 'react-native-gesture-handler'; // fix ongesture handler error
import 'react-native-image-keyboard';
// import 'node-libs-react-native/globals';
import './global';
import crypto from 'crypto'; // DO NOT REMOVE!
import 'intl-pluralrules';
import React from 'react';
// if (process.env.NODE_ENV === 'development') {
// const whyDidYouRender = require('@welldone-software/why-did-you-render');
// whyDidYouRender(React, {
// trackAllPureComponents: true,
// });
// }
import { AppRegistry, Platform } from 'react-native';
import reanimated from 'react-native-reanimated';
import App from './App';
import { enableFreeze } from 'react-native-screens';
process.env.DEBUG === 'tamagui';
process.env.TAMAGUI_TARGET = 'native';
process.env.TAMAGUI_ENABLE_DYNAMIC_LOAD = 1;
process.env.TAMAGUI_DISABLE_WARN_DYNAMIC_LOAD = 1;
enableFreeze(true);
if (Platform.OS === 'ios') {
//TODO: remove when Intl is implemented on Hermes engine (iOS)
require('@formatjs/intl-getcanonicallocales/polyfill').default;
require('@formatjs/intl-locale/polyfill').default;
require('@formatjs/intl-pluralrules/polyfill').default;
require('@formatjs/intl-pluralrules/locale-data/en').default;
require('@formatjs/intl-numberformat/polyfill').default;
require('@formatjs/intl-numberformat/locale-data/en').default;
}
// // grab this text blob, and put it in a file named packager/modulePaths.js
// console.log(`module.exports = ${JSON.stringify(loadedModuleNames.sort())};`);
AppRegistry.registerComponent('Minds', () => App);