Disable events on hidden bars (#1686)

This commit is contained in:
dan 2023-10-13 15:29:50 +01:00 committed by GitHub
parent eba9f8a166
commit d5ccbd76d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View file

@ -49,7 +49,14 @@ export const FeedsTabBar = observer(function FeedsTabBarImpl(
)
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]}>
<TouchableOpacity
@ -117,4 +124,7 @@ const styles = StyleSheet.create({
title: {
fontSize: 21,
},
disabled: {
pointerEvents: 'none',
},
})