forked from synonymdev/bitkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
25 lines (19 loc) · 797 Bytes
/
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
// NOTE: import order matters
import './shim';
import './src/utils/fetch';
import './src/utils/ignoreLogs';
import { AppRegistry, Text, TextInput } from 'react-native';
import { gestureHandlerRootHOC } from 'react-native-gesture-handler';
import Root from './src/Root';
import { name as appName } from './app.json';
import './src/utils/fetch-polyfill';
import { __E2E__, __JEST__ } from './src/constants/env';
// TEMP: disable font scaling globally
Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
TextInput.defaultProps = TextInput.defaultProps || {};
TextInput.defaultProps.allowFontScaling = false;
if (__DEV__ && !__JEST__ && !__E2E__) {
require('./ReactotronConfig');
}
AppRegistry.registerComponent(appName, () => gestureHandlerRootHOC(Root));