Disable events on hidden bars (#1686)
parent
eba9f8a166
commit
d5ccbd76d5
|
@ -49,7 +49,14 @@ export const FeedsTabBar = observer(function FeedsTabBarImpl(
|
||||||
)
|
)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Animated.View style={[pal.view, pal.border, styles.tabBar, transform]}>
|
<Animated.View
|
||||||
|
style={[
|
||||||
|
pal.view,
|
||||||
|
pal.border,
|
||||||
|
styles.tabBar,
|
||||||
|
transform,
|
||||||
|
store.shell.minimalShellMode && styles.disabled,
|
||||||
|
]}>
|
||||||
<View style={[pal.view, styles.topBar]}>
|
<View style={[pal.view, styles.topBar]}>
|
||||||
<View style={[pal.view]}>
|
<View style={[pal.view]}>
|
||||||
<TouchableOpacity
|
<TouchableOpacity
|
||||||
|
@ -117,4 +124,7 @@ const styles = StyleSheet.create({
|
||||||
title: {
|
title: {
|
||||||
fontSize: 21,
|
fontSize: 21,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
pointerEvents: 'none',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
|
@ -87,6 +87,7 @@ export const BottomBar = observer(function BottomBarImpl({
|
||||||
pal.border,
|
pal.border,
|
||||||
{paddingBottom: clamp(safeAreaInsets.bottom, 15, 30)},
|
{paddingBottom: clamp(safeAreaInsets.bottom, 15, 30)},
|
||||||
footerMinimalShellTransform,
|
footerMinimalShellTransform,
|
||||||
|
store.shell.minimalShellMode && styles.disabled,
|
||||||
]}>
|
]}>
|
||||||
<Btn
|
<Btn
|
||||||
testID="bottomBarHomeBtn"
|
testID="bottomBarHomeBtn"
|
||||||
|
|
|
@ -65,4 +65,7 @@ export const styles = StyleSheet.create({
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
borderRadius: 100,
|
borderRadius: 100,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
pointerEvents: 'none',
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue