From 8841d17a446ca1c96e5c1f7e7ea264c15fa93a00 Mon Sep 17 00:00:00 2001 From: Ezequiel de Oliveira Date: Wed, 19 Aug 2020 14:09:36 -0300 Subject: [PATCH] [FIX] Fix broken StatusView on tablet (#2407) Signed-off-by: Ezequiel De Oliveira --- app/views/SidebarView/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/SidebarView/index.js b/app/views/SidebarView/index.js index 6690b3b3..2eb44390 100644 --- a/app/views/SidebarView/index.js +++ b/app/views/SidebarView/index.js @@ -19,6 +19,7 @@ import database from '../../lib/database'; import { withTheme } from '../../theme'; import { getUserSelector } from '../../selectors/login'; import SafeAreaView from '../../containers/SafeAreaView'; +import Navigation from '../../lib/Navigation'; const Separator = React.memo(({ theme }) => ); Separator.propTypes = { @@ -135,8 +136,7 @@ class Sidebar extends Component { sidebarNavigate = (route) => { logEvent(events[`SIDEBAR_GO_${ route.replace('StackNavigator', '').replace('View', '').toUpperCase() }`]); - const { navigation } = this.props; - navigation.navigate(route); + Navigation.navigate(route); } get currentItemKey() {