Open SteffeyDev opened 5 years ago
Also facing this issue, using a flatlist of dynamic length, causes the same behavior
Having the same issue, also with a flatlist of dynamic length in tooltip mode. It's fine on ios devices, but on android the tooltip originates far below the from ref and jumps up into the correct position.
To get around this for the time being we're making use of the popoverStyle. Essentially we always show the tooltip, isVisible={true} and we control whether or not we show it via the popoverStyle:
popoverStyle={{ opacity: tip.display ? 1 : 0, backgroundColor: tip.display ? "white" : "transparent" }}
As all the internal views have pointer events disabled they don't interfere. This allows all the tooltips to load, measure the content and position themselves correctly.
Describe the bug If the popover size gets bigger as the view is animating in (for example, if content is loaded async and then re-rendered just before or during animation), the popover appears to be originating from a location that is below the actual fromRect.
Device/Setup Info:
react-native
version: 0.57react-native-popover-view
version: 1.0.16Screenshots See CC Orlando App - Bible Tab - Top right button
Debug Output