stream-chat-react-native
stream-chat-react-native copied to clipboard
feat: use queryReactions to fetch and show reactions in OverlayReactions.
๐ฏ Goal
This PR focuses on using the client.queryReactions API to show reactions in the OverlayReactions instead of what was used before(message.latest_reactions). Optimistic fetching of reactions from local DB is present and is also handled in the PR.
Note: The reactions type could have been ReactionsResponse and that would make the code much cleaner but sadly that would be a breaking change so the response from the API is mapped to the existing Reaction type.
Also, this PR is to be reviewed and merged once #2523 is merged.
๐ Implementation details
๐จ UI Changes
iOS
| Before | After |
Android
| Before | After |
๐งช Testing
โ๏ธ Checklist
- [ ] I have signed the Stream CLA (required)
- [ ] PR targets the
developbranch - [ ] Documentation is updated
- [ ] New code is tested in main example apps, including all possible scenarios
- [ ] SampleApp iOS and Android
- [ ] Expo iOS and Android