An inline wrapper for calling out React Native components via tooltip
Included in this release:
closeOnContentInteraction
to allow for a user to interact with the tooltip content and not have it automatically close (#80)This release introduces the prop topAdjustment
which allows for adjusting the vertical position of the child element in the tooltip. This is useful because the measure
function for Android can return an incorrect coordinate (nearly always offset by the height of the StatusBar
)
See https://github.com/jasongaare/react-native-walkthrough-tooltip/pull/69
This version adds typing for the childContentSpacing
prop
On some devices, there was a continuous loop with the measuring and layout callbacks, so the tooltip bubble would flicker rapidly between two sizes. This alleviates that issue.
In rare cases, the measure
function on a React Native View will return undefined
values, likely before they are actually known. This helps prevent a crash and/or incorrect childRect values by checking first that all values are defined
This release fixes some issues with typings.
See: https://github.com/jasongaare/react-native-walkthrough-tooltip/pull/55
Fixes issue: #53
readyToComputeGeom
and waitingToComputeGeom
from state, which were causing issuesadjustedContentSize
when moving from visible to hidden to correct measurement issue