-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathApp.js
More file actions
25 lines (21 loc) · 688 Bytes
/
App.js
File metadata and controls
25 lines (21 loc) · 688 Bytes
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
import { Navigation } from 'react-native-navigation';
import { Provider } from 'react-redux';
import { persistStore } from 'redux-persist';
import { store } from './app/config/store';
import { registerScreens, hackd } from './app/config/router';
registerScreens(store, Provider);
persistStore(store, null, () => {
registerScreens(store, Provider);
const { settings } = store.getState();
Navigation.startTabBasedApp({
tabs: hackd,
appStyle: {
navBarButtonColor: settings.appColor,
screenBackgroundColor: '#F2F3F6',
},
tabsStyle: {
tabBarSelectedButtonColor: settings.appColor,
tabBarSelectedLabelColor: settings.appColor,
},
});
});