Fixed navigation parameters

This commit is contained in:
Arnaud Vergnet 2020-04-16 10:08:42 +02:00
parent fe4d9ffecf
commit 912a30edc6

View file

@ -291,6 +291,9 @@ function PlanexStackComponent() {
options={({navigation}) => { options={({navigation}) => {
return { return {
title: 'GroupSelectionScreen', title: 'GroupSelectionScreen',
headerStyle: {
backgroundColor: colors.surface,
},
...TransitionPresets.ModalSlideFromBottomIOS, ...TransitionPresets.ModalSlideFromBottomIOS,
}; };
}} }}
@ -345,11 +348,14 @@ class TabNavigator extends React.Component<Props> {
> >
<Tab.Screen <Tab.Screen
name="proximo" name="proximo"
option
component={ProximoStackComponent} component={ProximoStackComponent}
options={{title: i18n.t('screens.proximo')}}
/> />
<Tab.Screen <Tab.Screen
name="planning" name="planning"
component={PlanningStackComponent} component={PlanningStackComponent}
options={{title: i18n.t('screens.planning')}}
/> />
<Tab.Screen <Tab.Screen
name="home" name="home"
@ -359,10 +365,12 @@ class TabNavigator extends React.Component<Props> {
<Tab.Screen <Tab.Screen
name="proxiwash" name="proxiwash"
component={ProxiwashStackComponent} component={ProxiwashStackComponent}
options={{title: i18n.t('screens.proxiwash')}}
/> />
<Tab.Screen <Tab.Screen
name="planex" name="planex"
component={PlanexStackComponent} component={PlanexStackComponent}
options={{title: "Planex"}}
/> />
</Tab.Navigator> </Tab.Navigator>
); );