Skip to content

Commit 54b5de4

Browse files
committed
move the navigationOptions into the TabNavigator
1 parent debf255 commit 54b5de4

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

source/views/menus/index.js

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ const StavHallTab = ({navigation}) =>
2525
'"Cooking" some lutefisk…',
2626
]}
2727
/>
28-
StavHallTab.navigationOptions = {
29-
tabBarLabel: 'Stav Hall',
30-
tabBarIcon: TabBarIcon('nutrition'),
31-
}
3228

3329
const TheCageTab = ({navigation}) =>
3430
<BonAppHostedMenu
@@ -38,28 +34,40 @@ const TheCageTab = ({navigation}) =>
3834
ignoreProvidedMenus={true}
3935
loadingMessage={['Checking for vegan cookies…', 'Serving up some shakes…']}
4036
/>
41-
TheCageTab.navigationOptions = {
42-
tabBarLabel: 'The Cage',
43-
tabBarIcon: TabBarIcon('cafe'),
44-
}
4537

4638
const ThePauseTab = ({navigation}) =>
4739
<GitHubHostedMenu
4840
navigation={navigation}
4941
name="pause"
5042
loadingMessage={['Mixing up a shake…', 'Spinning up pizzas…']}
5143
/>
52-
ThePauseTab.navigationOptions = {
53-
tabBarLabel: 'The Pause',
54-
tabBarIcon: TabBarIcon('paw'),
55-
}
5644

5745
export const MenusView = TabNavigator(
5846
{
59-
StavHallMenuView: {screen: StavHallTab},
60-
TheCageMenuView: {screen: TheCageTab},
61-
ThePauseMenuView: {screen: ThePauseTab},
62-
CarletonMenuListView: {screen: CarletonMenuPicker},
47+
StavHallMenuView: {
48+
screen: StavHallTab,
49+
navigationOptions: {
50+
tabBarLabel: 'Stav Hall',
51+
tabBarIcon: TabBarIcon('nutrition'),
52+
},
53+
},
54+
TheCageMenuView: {
55+
screen: TheCageTab,
56+
navigationOptions: {
57+
tabBarLabel: 'The Cage',
58+
tabBarIcon: TabBarIcon('cafe'),
59+
},
60+
},
61+
ThePauseMenuView: {
62+
screen: ThePauseTab,
63+
navigationOptions: {
64+
tabBarLabel: 'The Pause',
65+
tabBarIcon: TabBarIcon('paw'),
66+
},
67+
},
68+
CarletonMenuListView: {
69+
screen: CarletonMenuPicker,
70+
},
6371
// BonAppDevToolView: {screen: BonAppPickerView},
6472
},
6573
{

0 commit comments

Comments
 (0)