-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNavigators.js
59 lines (57 loc) · 1.8 KB
/
Navigators.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
import {
StackNavigator,
TabNavigator
} from 'react-navigation';
import { NavigationComponent } from 'react-native-material-bottom-navigation'
import Splash from './components/Splash';
import Cards from './containers/Cards';
import Favorites from './components/Favorites';
import RestaurantDetails from './containers/RestaurantDetails';
const AppNavigator = StackNavigator({
Splash: { screen: Splash, navigationOptions: { header: null } },
Cards: {
screen: TabNavigator({
Cards: {
screen: Cards,
navigationOptions: ({ navigation }) => ({})
},
Favorites: {
screen: Favorites,
navigationOptions: ({ navigation }) => ({})
}
}, {
navigationOptions: {
headerLeft: null,
headerTitle: 'BURRITOMATE',
headerTitleStyle: {
color: '#e32929',
alignSelf: 'center'
},
headerStyle: {
backgroundColor: 'white'
}
},
tabBarComponent: NavigationComponent,
tabBarPosition: 'bottom',
swipeEnabled: false,
tabBarOptions: {
bottomNavigationOptions: {
labelColor: '#e32929',
rippleColor: '#e32929',
tabs: {
Cards: {
barBackgroundColor: 'white'
},
Favorites: {
barBackgroundColor: 'white'
}
}
}
}
})
},
RestaurantDetails: {
screen: RestaurantDetails
}
});
export default AppNavigator;