-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathindex.js
41 lines (34 loc) · 1.34 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
41
import 'react-native-gesture-handler'; // fix ongesturehandler error
import 'react-native-image-keyboard';
import './global';
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, LogBox, Platform } from 'react-native';
import reanimated from 'react-native-reanimated';
import App from './App';
import { enableFreeze } from 'react-native-screens';
LogBox.ignoreAllLogs();
LogBox.ignoreLogs([
'Module RCTSilentSwitch requires main queue setup since it overrides',
'Found screens with the same name nested inside one another',
'Possible Unhandled Promise Rejection',
'new NativeEventEmitter',
'You have passed a style',
'Non-serializable values were found in the navigation state',
'Easing was renamed',
'Require cycle: ',
]);
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);
// // 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);