-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.js
29 lines (22 loc) · 974 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
import { Platform, UIManager, StatusBar } from 'react-native';
import { Navigation } from 'react-native-navigation';
import App from './app/main';
import { disableAnalytics } from 'helpers/analytics';
import { LogBox } from 'react-native';
LogBox.ignoreAllLogs();
global.Buffer = global.Buffer || require('buffer').Buffer;
// Don't enable animation support on Android, as it was causing strange UI issues (see https://3sidedcube.atlassian.net/browse/GFW-370)
if (Platform.OS === 'android') {
UIManager.setLayoutAnimationEnabledExperimental && UIManager.setLayoutAnimationEnabledExperimental(false);
}
if (Platform.OS === 'ios') {
StatusBar.setBarStyle('dark-content');
}
disableAnalytics(__DEV__);
const app = new App();
// We'll setup the app whenever RNN tells us the app has safely launched
// See https://wix.github.io/react-native-navigation/#/docs/app-launch
Navigation.events().registerAppLaunchedListener(() => {
app.setupApp();
});
export default app;