diff options
Diffstat (limited to 'src/view/shell/index.tsx')
-rw-r--r-- | src/view/shell/index.tsx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/view/shell/index.tsx b/src/view/shell/index.tsx index 84242c283..eab050fd0 100644 --- a/src/view/shell/index.tsx +++ b/src/view/shell/index.tsx @@ -1,6 +1,7 @@ import React from 'react' import {observer} from 'mobx-react-lite' -import {StatusBar, StyleSheet, useWindowDimensions, View} from 'react-native' +import {StatusBar} from 'expo-status-bar' +import {StyleSheet, useWindowDimensions, View} from 'react-native' import {useSafeAreaInsets} from 'react-native-safe-area-context' import {Drawer} from 'react-native-drawer-layout' import {useNavigationState} from '@react-navigation/native' @@ -43,7 +44,7 @@ const ShellInner = observer(() => { open={store.shell.isDrawerOpen} onOpen={onOpenDrawer} onClose={onCloseDrawer} - swipeEdgeWidth={winDim.width} + swipeEdgeWidth={winDim.width / 2} swipeEnabled={ !canGoBack && store.session.hasSession && @@ -72,11 +73,7 @@ export const Shell: React.FC = observer(() => { const pal = usePalette('default') return ( <View testID="mobileShellView" style={[styles.outerContainer, pal.view]}> - <StatusBar - barStyle={ - theme.colorScheme === 'dark' ? 'light-content' : 'dark-content' - } - /> + <StatusBar style={theme.colorScheme === 'dark' ? 'light' : 'dark'} /> <RoutesContainer> <ShellInner /> </RoutesContainer> |