Tooltip render error : "top":"<<NaN>>"
See original GitHub issueHello,
Sorry for my bad English, I’m French. Thanks you very much for your fabulous library.
With tooltip
in Flatlist
(very basic use case) I have this error when clicking on the tooltip
:
Invariant Violation: [9217,“RCTView”,11,{“position”:“absolute”,“top”:“<<NaN>>”,“backgroundColor”:0,“overflow”:“visible”}] is not usable as a native method argument
Here is a copy of my code, although this one is really basic :
<View>
<Tooltip
popover={<Text>{exerciseEquipment.name}</Text>}
withOverlay={false}
backgroundColor="#fff"
width={300}
>
<Image
source={{ uri: ... }}
style={styles.image}
/>
</Tooltip>
<View>
I think it’s the same problem, this bug being from the beginning of 2020 : https://github.com/react-native-elements/react-native-elements/issues/2237
This issue proposes to set up getElementPosition
but I’m not sure where to put that.
Have you found a lasting solution ? If not, it would perhaps be interesting to indicate it in the documentation because the probability of error is very very high.
Your Environment (Required):
software | version |
---|---|
react-native-elements | 3.4.2 |
react-native | 0.64.2 |
Issue Analytics
- State:
- Created 2 years ago
- Reactions:4
- Comments:12 (3 by maintainers)
Top GitHub Comments
Hey this has been fixed, Please wait for release or use Bleeding Edge Version
I believe the PR you mentioned is available in v4.0.0-rc.5, can you try upgrading it?