-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.js
26 lines (24 loc) · 975 Bytes
/
App.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
import * as React from 'react';
import {StatusBar} from 'react-native';
import {mapping, light as lightTheme} from '@eva-design/eva';
import {EvaIconsPack} from '@ui-kitten/eva-icons';
import {ApplicationProvider, IconRegistry} from '@ui-kitten/components';
import MainNavigator from './src/navigation/MainNavigator';
import {Provider} from 'mobx-react';
import {RootStore} from './src/stores/';
import Color from './src/constants/Color';
import {enableScreens} from 'react-native-screens';
console.disableYellowBox = true;
const rootStore = new RootStore();
enableScreens();
const barStyle = Platform.OS === 'ios' ? 'dark-content' : 'light-content';
const App = () => (
<Provider rootStore={rootStore}>
<ApplicationProvider mapping={mapping} theme={lightTheme}>
<StatusBar backgroundColor={Color.primary} barStyle={barStyle} />
<IconRegistry icons={EvaIconsPack} />
<MainNavigator />
</ApplicationProvider>
</Provider>
);
export default App;