Because the tooltip renders a copy of your child element in a modal, you may need to distinguish between the 'real' child in your layout and the 'duplicate' child in the tooltip. You can use TooltipChildrenContext.Consumer to check the tooltipDuplicate property.
This is useful for logic like assigning refs only to the original component to avoid issues with the cloned version.
import Tooltip, { TooltipChildrenContext } from 'react-native-walkthrough-tooltip';
<Tooltip>
<ComponentA />
<ComponentB>
<TooltipChildrenContext.Consumer>
{({ tooltipDuplicate }) => (
// will only assign a ref to the original component
<FlatList {...(!tooltipDuplicate && { ref: this.listRef })} />
)}
</TooltipChildrenContext.Consumer>
</ComponentB>
</Tooltip>