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() {