Open shivam-880 opened 4 years ago
This happen to me, it was a link problem on iOS, i used pods.
@codingkapoor try this `const target = useRef(null); const parent = useRef(null); const [visible, setVisible] = useState(false);
return (
<View ref={parent}>
<TouchableOpacity onPress={() => setVisible(true)} ref={target}>
<View>
<Text>Click me</Text>
</View>
</TouchableOpacity>
<RNTooltips
text="Test"
visible={visible}
target={target.current}
parent={parent.current}
onHide={() => setVisible(false)}
clickToHide
/>
</View>
);
`
Hi @prscX,
I am not able to figure out how would I really use RNTooltips API with functional components. Please guide.
I am trying to raise tool tips upon
onDayLongPress
on a https://github.com/wix/react-native-calendars.What I have done so far is: