-
Notifications
You must be signed in to change notification settings - Fork 72
/
App.tsx
33 lines (26 loc) · 811 Bytes
/
App.tsx
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
import {LogBox} from 'react-native';
import {Root, Screen, BottomTabs} from 'rnn-screens';
import {screens} from './src/screens';
import {Services} from './src/services';
import {Stores} from './src/stores';
import {DesignSystem} from './src/utils/designSystem';
import SplashScreen from 'react-native-splash-screen';
LogBox.ignoreLogs(['Require', 'RCTBridge']);
export const beforeStart = async (): PVoid => {
// 1. hydrate stores
await Stores.hydrate();
// 2. configure design system
await DesignSystem.configure();
// 3. init services
await Services.init();
// 4. hide splash screen
SplashScreen.hide();
};
export const App = () =>
Root(
BottomTabs([
Screen(screens.get('Main')),
Screen(screens.get('Playground')),
Screen(screens.get('Settings')),
]),
);