stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Provide additionalInfo to onLongPressProp

Open deiay opened this issue 9 months ago โ€ข 0 comments

๐ŸŽฏ Goal

I noticed my custom onLongPressProp wasn't receiving additionalnfo about the press (e.g. specific thumbnail that was long pressed). I want to be able to take action based off the specific thumbnail that was long pressed in my custom onLongPress function. To do this I need access to the additional info objet.

๐Ÿ›  Implementation details

This change passes the additionalInfo object to prop onLongPress functions.

๐ŸŽจ UI Changes

iOS
Before After
Android
Before After

๐Ÿงช Testing

โ˜‘๏ธ Checklist

  • [ ] I have signed the Stream CLA (required)
  • [ ] PR targets the develop branch
  • [ ] Documentation is updated
  • [ ] New code is tested in main example apps, including all possible scenarios
    • [ ] SampleApp iOS and Android
    • [ ] Expo iOS and Android

deiay avatar Apr 26 '25 15:04 deiay