SteffeyDev / react-native-popover-view

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

App Crashing on Android after opening Tooltip #125

Closed arunim2405 closed 3 years ago

arunim2405 commented 3 years ago

Describe the bug What is it that you are seeing? Please be detailed in your description so that I can help fix your issue as quickly as possible.

Device/Setup Info: All android devices

Debug Output Pass the debug={true} prop into the Popover, and then paste the contents of the log here. TRUE LOG [2021-10-27T14:18:50.275Z] calculateRectFromRef - waiting for ref LOG [2021-10-27T14:18:50.276Z] calculateRectFromRef - waiting for ref to move LOG [2021-10-27T14:18:50.327Z] calculateRectFromRef - calculated Rect: {"x":null,"y":null} LOG PROPSL 39 LOG PROPSL 39 LOG [2021-10-27T14:18:50.463Z] setDefaultDisplayArea - newDisplayArea: {"x":0,"y":-0.00004438920450411388,"width":392.7272644042969,"height":486.18182373046875} LOG [2021-10-27T14:18:50.500Z] setDefaultDisplayArea - displayAreaOffset: {"x":0,"y":0} LOG [2021-10-27T14:18:50.505Z] handleChange - no requestedContentSize, exiting... LOG [2021-10-27T14:18:50.509Z] calculateRectFromRef - waiting for ref LOG [2021-10-27T14:18:50.509Z] calculateRectFromRef - waiting for ref to move LOG [2021-10-27T14:18:50.516Z] calculateRectFromRef - calculated Rect: {"x":null,"y":null} LOG [2021-10-27T14:18:50.520Z] handleChange - no requestedContentSize, exiting... LOG [2021-10-27T14:18:50.521Z] measureContent - new requestedContentSize: {"width":387.6363525390625,"y":0,"height":338.5454406738281,"x":0} (used to be null) LOG [2021-10-27T14:18:50.525Z] handleChange - waiting 100ms to accumulate all changes LOG [2021-10-27T14:18:50.729Z] handleChange - requestedContentSize: {"width":387.6363525390625,"y":0,"height":338.5454406738281,"x":0} LOG [2021-10-27T14:18:50.729Z] handleChange - displayArea: {"x":0,"y":0,"width":392.7272644042969,"height":486.18182373046875} LOG [2021-10-27T14:18:50.729Z] handleChange - fromRect: {"x":null,"y":null} LOG [2021-10-27T14:18:50.729Z] handleChange - placement: "top" LOG [2021-10-27T14:18:50.735Z] computeGeometry - initial chosen geometry: {"popoverOrigin":{"x":null,"y":null},"anchorPoint":{"x":null,"y":null},"placement":"top","forcedContentSize":{"height":null,"width":372.7272644042969},"viewLargerThanDisplayArea":{"height":false,"width":true}} LOG [2021-10-27T14:18:50.736Z] computeGeometry - final chosen geometry: {"popoverOrigin":{"x":null,"y":null},"anchorPoint":{"x":null,"y":null},"placement":"top","forcedContentSize":{"height":null,"width":372.7272644042969},"viewLargerThanDisplayArea":{"height":false,"width":true}} LOG [2021-10-27T14:18:50.741Z] handleChange - delaying showing popover because viewLargerThanDisplayArea LOG [2021-10-27T14:18:50.772Z] measureContent - new requestedContentSize: {"width":372.7272644042969,"y":0,"height":338.5454406738281,"x":0} (used to be {"width":387.6363525390625,"y":0,"height":338.5454406738281,"x":0}) LOG [2021-10-27T14:18:50.777Z] handleChange - waiting 100ms to accumulate all changes LOG [2021-10-27T14:18:50.964Z] handleChange - requestedContentSize: {"width":372.7272644042969,"y":0,"height":338.5454406738281,"x":0} LOG [2021-10-27T14:18:50.964Z] handleChange - displayArea: {"x":0,"y":0,"width":392.7272644042969,"height":486.18182373046875} LOG [2021-10-27T14:18:50.964Z] handleChange - fromRect: {"x":null,"y":null} LOG [2021-10-27T14:18:50.965Z] handleChange - placement: "top" LOG [2021-10-27T14:18:50.965Z] computeGeometry - initial chosen geometry: {"popoverOrigin":{"x":null,"y":null},"anchorPoint":{"x":null,"y":null},"placement":"top","forcedContentSize":{"height":null,"width":372.7272644042969},"viewLargerThanDisplayArea":{"height":false,"width":false}} LOG [2021-10-27T14:18:50.965Z] computeGeometry - final chosen geometry: {"popoverOrigin":{"x":null,"y":null},"anchorPoint":{"x":null,"y":null},"placement":"top","forcedContentSize":{"height":null,"width":372.7272644042969},"viewLargerThanDisplayArea":{"height":false,"width":false}} LOG [2021-10-27T14:18:50.969Z] handleChange - animating in

arunim2405 commented 3 years ago

For some reason, the ref I was providing (View) wasn't detected in Android but was working fine in iOS, closing this for now