forked from synonymdev/bitkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
33 lines (28 loc) · 1.27 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
import './shim';
import { polyfill as polyfillFetch } from 'react-native-polyfill-globals/src/fetch';
import { polyfill as polyfillEncoding } from 'react-native-polyfill-globals/src/encoding';
import { polyfill as polyfillReadableStream } from 'react-native-polyfill-globals/src/readable-stream';
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 { __E2E__ } from './src/constants/env';
if (!__E2E__) {
// Polyfill fetch streaming on iOS (Android is not supported yet)
// https://github.com/react-native-community/fetch/issues/13
polyfillEncoding();
polyfillReadableStream();
polyfillFetch();
}
// Polyfill fetch streaming on iOS (Android is not supported yet)
// https://github.com/react-native-community/fetch/issues/13
polyfillEncoding();
polyfillReadableStream();
polyfillFetch();
// TEMP: disable font scaling globally
Text.defaultProps = Text.defaultProps || {};
Text.defaultProps.allowFontScaling = false;
TextInput.defaultProps = TextInput.defaultProps || {};
TextInput.defaultProps.allowFontScaling = false;
AppRegistry.registerComponent(appName, () => gestureHandlerRootHOC(Root));