react-native-modalbox
react-native-modalbox copied to clipboard
The modal will open and then close in a flash after I close the modal
<ModalBox
ref={(ref) => this.modal = ref}
style={styles.modalContainer}
backdropColor='rgba(215, 215, 215, 0.384313725490196)'
coverScreen={true}
swipeToClose={false}
>
...
</ModalBox>
...
<ListItem onPress={() => this.modal.open()}>
<NBText allowFontScaling={false}>text</NBText>
</ListItem>
Here is my code, the modal will open and then close in a flash after I click the background of the modal
Same! Only happens when coverScreen
is true
Use useNativeDriver = false
You can see this PR https://github.com/maxs15/react-native-modalbox/pull/234/files
version 1.7.1 fixed this issue, you can use useNativeDriver: true
now.
version 1.7.1 fixed this issue, you can use
useNativeDriver: true
now.
I'm use version 1.7.1, using useNativeDriver: true
still not work. Using useNativeDriver: false
, its working