Hide main menu drawer on click outside
parent
e8eb3e131c
commit
9a99c9c8c8
|
@ -9,6 +9,7 @@ import {
|
||||||
StyleSheet,
|
StyleSheet,
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
|
TouchableWithoutFeedback,
|
||||||
useColorScheme,
|
useColorScheme,
|
||||||
useWindowDimensions,
|
useWindowDimensions,
|
||||||
View,
|
View,
|
||||||
|
@ -394,7 +395,10 @@ export const MobileShell: React.FC = observer(() => {
|
||||||
)}
|
)}
|
||||||
</ScreenContainer>
|
</ScreenContainer>
|
||||||
{isMenuActive || menuSwipingDirection !== 0 ? (
|
{isMenuActive || menuSwipingDirection !== 0 ? (
|
||||||
<Animated.View style={[styles.screenMask, menuSwipeOpacity]} />
|
<TouchableWithoutFeedback
|
||||||
|
onPress={() => store.shell.setMainMenuOpen(false)}>
|
||||||
|
<Animated.View style={[styles.screenMask, menuSwipeOpacity]} />
|
||||||
|
</TouchableWithoutFeedback>
|
||||||
) : undefined}
|
) : undefined}
|
||||||
<Animated.View style={[styles.menuDrawer, menuSwipeTransform]}>
|
<Animated.View style={[styles.menuDrawer, menuSwipeTransform]}>
|
||||||
<Menu
|
<Menu
|
||||||
|
|
Loading…
Reference in New Issue