Fix notification impeding the input in the rest of the app (#7942)

This commit is contained in:
Daniel Espino García 2024-05-09 13:02:22 +02:00 committed by GitHub
parent 25326a623a
commit 22e21a4026
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -62,6 +62,9 @@ const styles = StyleSheet.create({
touchable: {
flexDirection: 'row',
},
gestureHandler: {
flex: 0,
},
});
const InAppNotification = ({componentId, serverName, serverUrl, notification}: InAppNotificationProps) => {
@ -148,7 +151,7 @@ const InAppNotification = ({componentId, serverName, serverUrl, notification}: I
const database = DatabaseManager.serverDatabases[serverUrl]?.database;
return (
<GestureHandlerRootView>
<GestureHandlerRootView style={styles.gestureHandler}>
<GestureDetector gesture={gesture}>
<Animated.View
style={[styles.container, isTablet ? styles.tablet : undefined, animatedStyle]}