From b38c072f511fa460a3566c9cc5da38391bbefe27 Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Wed, 9 Aug 2017 14:14:50 -0300 Subject: [PATCH] Improve header buttons for Android --- app/navigation.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/navigation.js b/app/navigation.js index 2913302ab..e4b1951b7 100644 --- a/app/navigation.js +++ b/app/navigation.js @@ -1,5 +1,5 @@ import React from 'react'; -import { Button } from 'react-native'; +import { Button, Platform } from 'react-native'; import { StackNavigator } from 'react-navigation'; import LoginView from './views/login'; import NewServerView from './views/serverNew'; @@ -8,11 +8,13 @@ import RoomsListView from './views/roomsList'; import RoomView from './views/room'; +const position = Platform.OS === 'ios' ? 'headerLeft' : 'headerRight'; + const MainCardNavigator = StackNavigator({ Rooms: { screen: RoomsListView, navigationOptions: ({ navigation }) => ({ - headerLeft: