Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

How use UseRef to show popover just above the pressed element in React Native?

$
0
0

I am using the Flyerchat library for the chat application.

<Popover        isVisible={open}        onRequestClose={() => setOpen(false)}        from={touchable}        ref={touchable}        arrowSize={{ height: 0, width: 0 }}></Popover><FlyerHQChat        onMessageLongPress={(messageInfo: MessageType.Any) => {          touchable?.current;          setOpen(true);          console.log('Message pressed', messageInfo);        }}         ..../>

I log touchable and got popover elements, but the popover is not displayed around the message pressed. it shows a popover on top of the screen.


Viewing all articles
Browse latest Browse all 6287

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>