react-native-modalbox icon indicating copy to clipboard operation
react-native-modalbox copied to clipboard

The modal will open and then close in a flash after I close the modal

Open lazysheep666 opened this issue 6 years ago • 5 comments

lazysheep666 avatar Dec 24 '18 05:12 lazysheep666

<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

lazysheep666 avatar Dec 24 '18 05:12 lazysheep666

Same! Only happens when coverScreen is true

arrygoo avatar Jan 27 '19 20:01 arrygoo

Use useNativeDriver = false

You can see this PR https://github.com/maxs15/react-native-modalbox/pull/234/files

Xaber20110202 avatar Mar 11 '19 12:03 Xaber20110202

version 1.7.1 fixed this issue, you can use useNativeDriver: true now.

sapjax avatar May 31 '19 02:05 sapjax

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

bkitduy avatar Jun 13 '19 03:06 bkitduy