SteffeyDev / react-native-popover-view

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

Screen freezes when there is a view that exceeds the height of the screen #157

Open summer88123 opened 1 year ago

summer88123 commented 1 year ago

Describe the bug We have a conversation details page. When send a text message beyond the height of the screen. At this point, long press on the text message page freezes

in function AdaptivePopover. calculateRectFromRef, at line 232, getRectForRef return an Rect like this {x:70,y:-17000,width:200,height:15000}. The calculation is correct, and the view is indeed this high. Finally, function return at line 243, state fromRect is not init.

截屏2023-02-02 17 35 25

Device/Setup Info:

Screenshots https://user-images.githubusercontent.com/6141102/216285039-7fd79959-a6ef-478a-8e77-5f3fa08b49e0.mp4

Debug Output AdaptivePopover.js:181 [2023-02-02T09:24:51.507Z] calculateRectFromRef - waiting for ref AdaptivePopover.js:181 [2023-02-02T09:24:51.507Z] calculateRectFromRef - waiting for ref to move

seba9999 commented 1 year ago

Did you find some workaround ?

It seems that even in the official snack the problem is present when pressing the "partially off screen" button !

As soon as the popover is calculated out the screen it freeze the app ...

AkshayItaliya01 commented 9 months ago

Any one found solution?