react-native-popover-view
react-native-popover-view copied to clipboard
Screen freezes when there is a view that exceeds the height of the screen
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.
Device/Setup Info:
- Device: One Plus 8T
- OS: Android 11
-
react-native
version: 0.63 -
react-native-popover-view
version: 5.0.1
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
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 ...
Any one found solution?