[FIX] Fix broken StatusView on tablet (#2407)
Signed-off-by: Ezequiel De Oliveira <ezequiel1de1oliveira@gmail.com>
This commit is contained in:
parent
e69c810a47
commit
8841d17a44
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue