Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to prevent re-rendering of message when user scroll chatting log #2476

Open
tiger01815 opened this issue Feb 2, 2024 · 0 comments
Open

Comments

@tiger01815
Copy link

I am developing react native project and am using react native gifted chat module for chatting feature.
react native gifted module does not support audio chatting. So I added custom Audio component using renderMessageAudio props.
But When user scroll screen this module re-render all element(text, image audio).How can I prevent this?

[FILL THIS OUT]

[FILL THIS OUT]
Audio component is re-render and so spinner is shown when user scroll screen

[FILL THIS OUT]

Additional Information

  • Nodejs version: >="16.0"
  • React version: "18.0.2"
  • React Native version: "0.72.1"
  • react-native-gifted-chat version: "2.4.0"
  • Platform(s) :Android
  • TypeScript version: "4.8.4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant