-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
40 lines (33 loc) · 896 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* @format
*/
import {AppRegistry, Text, TextInput} from 'react-native';
import App from './App';
import {name as appName} from './app.json';
global.XMLHttpRequest = global.originalXMLHttpRequest
? global.originalXMLHttpRequest
: global.XMLHttpRequest;
global.FormData = global.originalFormData
? global.originalFormData
: global.FormData;
fetch;
import i18n from './src/utils/i18n';
import {AppDebugger} from 'mobile-app-debugger';
import {isAppDebuggerEnabled} from './src/API';
Text.defaultProps = {
...(Text.defaultProps || {}),
allowFontScaling: false,
includeFontPadding: false,
};
TextInput.defaultProps = {
...(TextInput.defaultProps || {}),
allowFontScaling: false,
includeFontPadding: false,
};
if (isAppDebuggerEnabled) {
AppDebugger.configure({
port: 1234,
isOverwriteConsole: true,
});
}
AppRegistry.registerComponent(appName, () => App);