SteffeyDev / react-native-popover-view

A well-tested, adaptable, lightweight <Popover> component for react-native
MIT License
614 stars 92 forks source link

onCloseComplete dos not work on iOS #98

Closed SikoraKam closed 3 years ago

SikoraKam commented 3 years ago

Describe the bug On android everything is fine but on iOS prop onCloseComplete is not triggered. Try simple onRequestClose={() => console.log('isItWorking?')}

Additional, I am using isVisible and onRequestClose props if it change sth.

Device/Setup Info:

SteffeyDev commented 3 years ago

Are you using expo? It's working in expo for me, but I don't have a non-expo app built to test in.

SikoraKam commented 3 years ago

no, I don't use expo

SteffeyDev commented 3 years ago

Ok, I think I have a fix ready for next release

SteffeyDev commented 3 years ago

This is actually a bug with react-native (https://github.com/facebook/react-native/issues/26892), but I found a work-around that bypasses the issue.

SteffeyDev commented 3 years ago

Fixed in 4.0.0