react-native-popover-view icon indicating copy to clipboard operation
react-native-popover-view copied to clipboard

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

Open summer88123 opened this issue 2 years ago • 2 comments

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:

  • 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

summer88123 avatar Feb 02 '23 10:02 summer88123

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 ...

seba9999 avatar Nov 16 '23 15:11 seba9999

Any one found solution?

AkshayItaliya01 avatar Feb 09 '24 05:02 AkshayItaliya01