-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
60 lines (57 loc) · 1.53 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import {Navigation} from 'react-native-navigation';
import registerAppScreens from './src/navigation/register-screens';
import ROUTE_NAME from './src/navigation/navigation-constants';
registerAppScreens(); // register all the screens
Navigation.events().registerAppLaunchedListener(() =>
Navigation.setRoot({
root: {
bottomTabs: {
id: 'BOTTOM_TABS_LAYOUT',
children: [
{
stack: {
id: 'HOME_TAB',
children: [
{
component: {
id: 'HOME_SCREEN',
name: ROUTE_NAME.APP_HOME,
},
},
],
options: {
bottomTab: {
text: 'Home',
//icon: require('./home.png'),
},
},
},
},
{
stack: {
id: 'SEARCH_TAB',
children: [
{
component: {
id: 'SEARCH_SCREEN',
name: ROUTE_NAME.APP,
},
},
],
options: {
bottomTab: {
text: 'Search',
// icon: require('./profile.png'),
},
},
},
},
],
options: {bottomTabs: {borderColor: 'red', borderWidth: 10}},
},
},
}),
);
Navigation.mergeOptions('BOTTOM_TABS_LAYOUT', {
bottomTab: {selectedTextColor: 'blue'},
});