SteffeyDev / react-native-popover-view

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

App freeze when popover is calculated off screen (even in official snack) #170

Closed seba9999 closed 1 year ago

seba9999 commented 1 year ago

Describe the bug It seems that as soon as the popover is calculated out of the screen (or even partially out ?) the app freeze !

You can see it in action in your official snack when pressing the "partially off screen" button !

Device/Setup Info:

Debug Output

sdk_gphone_x86_arm: [2023-11-16T15:23:16.024Z] calculateRectFromRef - waiting for ref
sdk_gphone_x86_arm: [2023-11-16T15:23:16.024Z] calculateRectFromRef - waiting for ref to move
seba9999 commented 1 year ago

Nevermind ! I didn't see I was using 5.0.0 but it seems fixed in the 5.1.8 version ! You just have to update the version in the package.json to 5.1.8 the snack repo ! :)