-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
29 lines (23 loc) · 859 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
/**
* @format
*/
import 'react-native-gesture-handler';
import { AppRegistry, LogBox, Platform, UIManager } from "react-native";
import 'react-native-console-time-polyfill';
import {enableScreens} from "react-native-screens";
import AppEntry from './App';
import {name as appName} from './app.json';
import BARSAPI from "./src/Common/Globals";
import {BarsTask} from "./src/API/BARS";
enableScreens(true)
if (Platform.OS === 'android') {
if (UIManager.setLayoutAnimationEnabledExperimental) {
UIManager.setLayoutAnimationEnabledExperimental(true);
}
}
LogBox.ignoreLogs([
'Require cycle: ', //cheerio кидает варнинг
'ViewPropTypes will be removed from React Native. Migrate to ViewPropTypes exported from \'deprecated-react-native-prop-types\'.'
]);
BARSAPI.Init(false)
AppRegistry.registerComponent(appName, () => AppEntry);