I want to implement a popover that pops right after clicking on a specific avatar,
what is the best implementation in this case and how? using renderAvatar props?
Thanks
You could use the onPressAvatar prop in the GiftedChat Component. I would simply show a Modal.
I thought about it, but if i want to show the modal next to the avatar?
the onPressAvatar function returns 'user', without X,Y coordinates of the pressed avatar.
Thanks!
Why not render your own avatar? The component has a renderAvatar function option where you render your avatar.
You could use that and render an avatar with a touchableOpacity, and if touched render something above it
@12tp12 Yes you should use renderAvatar...
Thanks everyone!
I close your issue, but I create a question pointing here: https://github.com/FaridSafi/react-native-gifted-chat/blob/master/README.md#questions
Most helpful comment
You could use the onPressAvatar prop in the GiftedChat Component. I would simply show a Modal.