Remove flickering when closing a modal

This commit is contained in:
Maarten 2024-08-12 12:52:37 +02:00
parent f0f99d0767
commit 463f8e6bac
2 changed files with 2 additions and 2 deletions

View file

@ -132,7 +132,7 @@ export default function ExploreScreen() {
</ScrollView> </ScrollView>
</ThemedView> </ThemedView>
<Modal isVisible={activeCategory !== null}> <Modal isVisible={activeCategory !== null} useNativeDriverForBackdrop={true}>
<ThemedView style={{ ...styles.modalView, backgroundColor: Colors[ colorScheme ].background }}> <ThemedView style={{ ...styles.modalView, backgroundColor: Colors[ colorScheme ].background }}>
<ThemedText type="subtitle" style={{ marginBottom: 30, textAlign: 'center' }}>{activeCategory?.name}</ThemedText> <ThemedText type="subtitle" style={{ marginBottom: 30, textAlign: 'center' }}>{activeCategory?.name}</ThemedText>

View file

@ -52,7 +52,7 @@ const CustomModal: React.FC<EditModalProps> = ({ title, visible, onClose, onSave
}; };
return ( return (
<Modal isVisible={visible}> <Modal isVisible={visible} useNativeDriverForBackdrop={true}>
<ThemedView style={{ ...styles.view, backgroundColor: Colors[ colorScheme ].background }}> <ThemedView style={{ ...styles.view, backgroundColor: Colors[ colorScheme ].background }}>
<ThemedText style={styles.text}>{title ? title : 'Pas je gegevens aan:'}</ThemedText> <ThemedText style={styles.text}>{title ? title : 'Pas je gegevens aan:'}</ThemedText>