forked from CodeRabbitYu/ShiTu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
42 lines (29 loc) · 1010 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
41
42
/** @format */
import {AppRegistry, YellowBox} from 'react-native';
import { configure } from 'mobx';
configure({ enforceActions: 'observed' });
import { Theme } from 'teaset';
import './app/utils/Global';
import DefaultTheme from './app/resource/thems/DefaultTheme';
Theme.set(DefaultTheme);
// import App from './app/index';
import applyDecoratedDescriptor from '@babel/runtime/helpers/esm/applyDecoratedDescriptor';
import initializerDefineProperty from '@babel/runtime/helpers/esm/initializerDefineProperty';
Object.assign(babelHelpers, { applyDecoratedDescriptor, initializerDefineProperty })
const App = require('./app/index').default;
import {name as appName} from './app.json';
if (!__DEV__) {
global.console = {
info: () => {
},
log: () => {
},
warn: () => {
},
error: () => {
},
};
}
YellowBox.ignoreWarnings(['Require cycle:']);
// console.ignoredYellowBox = [ 'Warning: isMounted(...)', 'Require cycle: app/utils'];
AppRegistry.registerComponent(appName, () => App);