Browse Source

Fixed navigation parameters

Arnaud Vergnet 4 years ago
parent
commit
912a30edc6
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      src/navigation/MainTabNavigator.js

+ 8
- 0
src/navigation/MainTabNavigator.js View File

@@ -291,6 +291,9 @@ function PlanexStackComponent() {
291 291
                     options={({navigation}) => {
292 292
                         return {
293 293
                             title: 'GroupSelectionScreen',
294
+                            headerStyle: {
295
+                                backgroundColor: colors.surface,
296
+                            },
294 297
                             ...TransitionPresets.ModalSlideFromBottomIOS,
295 298
                         };
296 299
                     }}
@@ -345,11 +348,14 @@ class TabNavigator extends React.Component<Props> {
345 348
             >
346 349
                 <Tab.Screen
347 350
                     name="proximo"
351
+                    option
348 352
                     component={ProximoStackComponent}
353
+                    options={{title: i18n.t('screens.proximo')}}
349 354
                 />
350 355
                 <Tab.Screen
351 356
                     name="planning"
352 357
                     component={PlanningStackComponent}
358
+                    options={{title: i18n.t('screens.planning')}}
353 359
                 />
354 360
                 <Tab.Screen
355 361
                     name="home"
@@ -359,10 +365,12 @@ class TabNavigator extends React.Component<Props> {
359 365
                 <Tab.Screen
360 366
                     name="proxiwash"
361 367
                     component={ProxiwashStackComponent}
368
+                    options={{title: i18n.t('screens.proxiwash')}}
362 369
                 />
363 370
                 <Tab.Screen
364 371
                     name="planex"
365 372
                     component={PlanexStackComponent}
373
+                    options={{title: "Planex"}}
366 374
                 />
367 375
             </Tab.Navigator>
368 376
         );

Loading…
Cancel
Save