From 0e1cb6e5ed9444dd9af1585f8c405dd180b5fb8e Mon Sep 17 00:00:00 2001 From: Rodrigo Nascimento Date: Fri, 11 Aug 2017 14:05:30 -0300 Subject: [PATCH] Better reactivity --- app/navigation.js | 6 +----- app/views/room.js | 19 +++++++++-------- app/views/roomsList.js | 45 +++++++++++++++++++++++++++++++---------- app/views/serverList.js | 1 + 4 files changed, 47 insertions(+), 24 deletions(-) diff --git a/app/navigation.js b/app/navigation.js index dec315ab..d465d609 100644 --- a/app/navigation.js +++ b/app/navigation.js @@ -8,14 +8,10 @@ import RoomsListView from './views/roomsList'; import RoomView from './views/room'; import CreateChannel from './views/CreateChannel'; -const position = Platform.OS === 'ios' ? 'headerLeft' : 'headerRight'; const MainCardNavigator = StackNavigator({ Rooms: { - screen: RoomsListView, - navigationOptions: ({ navigation }) => ({ - [position]: