Remove flickering when closing a modal
This commit is contained in:
parent
f0f99d0767
commit
463f8e6bac
2 changed files with 2 additions and 2 deletions
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue