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: