From 1e49d80bb49481c34f415831b9da5e9d53e66057 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Thu, 28 May 2020 17:34:37 -0300 Subject: [PATCH] Simpler app container --- app/AppContainer.js | 35 ++++++----------------------------- 1 file changed, 6 insertions(+), 29 deletions(-) diff --git a/app/AppContainer.js b/app/AppContainer.js index 1c6a32603d..55219bca52 100644 --- a/app/AppContainer.js +++ b/app/AppContainer.js @@ -32,7 +32,6 @@ const SetUsernameStack = () => ( ); // App -const Stack = createStackNavigator(); const App = React.memo(({ root }) => { if (!root || root === ROOT_BACKGROUND) { return null; @@ -41,34 +40,12 @@ const App = React.memo(({ root }) => { return ( - - <> - {root === ROOT_LOADING ? ( - - ) : null} - {root === ROOT_OUTSIDE || root === ROOT_NEW_SERVER ? ( - - ) : null} - {root === ROOT_INSIDE ? ( - - ) : null} - {root === ROOT_SET_USERNAME ? ( - - ) : null} - - + <> + {root === ROOT_LOADING ? : null} + {root === ROOT_OUTSIDE || root === ROOT_NEW_SERVER ? : null} + {root === ROOT_INSIDE ? : null} + {root === ROOT_SET_USERNAME ? : null} + );