[FIX] Fix broken StatusView on tablet (#2407)

Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com>
This commit is contained in:
Ezequiel de Oliveira 2020-08-19 14:09:36 -03:00 committed by GitHub
parent e69c810a47
commit 8841d17a44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -19,6 +19,7 @@ import database from '../../lib/database';
import { withTheme } from '../../theme'; import { withTheme } from '../../theme';
import { getUserSelector } from '../../selectors/login'; import { getUserSelector } from '../../selectors/login';
import SafeAreaView from '../../containers/SafeAreaView'; import SafeAreaView from '../../containers/SafeAreaView';
import Navigation from '../../lib/Navigation';
const Separator = React.memo(({ theme }) => <View style={[styles.separator, { borderColor: themes[theme].separatorColor }]} />); const Separator = React.memo(({ theme }) => <View style={[styles.separator, { borderColor: themes[theme].separatorColor }]} />);
Separator.propTypes = { Separator.propTypes = {
@ -135,8 +136,7 @@ class Sidebar extends Component {
sidebarNavigate = (route) => { sidebarNavigate = (route) => {
logEvent(events[`SIDEBAR_GO_${ route.replace('StackNavigator', '').replace('View', '').toUpperCase() }`]); logEvent(events[`SIDEBAR_GO_${ route.replace('StackNavigator', '').replace('View', '').toUpperCase() }`]);
const { navigation } = this.props; Navigation.navigate(route);
navigation.navigate(route);
} }
get currentItemKey() { get currentItemKey() {