react-native-gifted-chat
react-native-gifted-chat copied to clipboard
messages not visible initially
Issue Description
i load messages from an endpoint (using apollo-client).
The chat window is initially empty, until i add another message, then all loaded messages are shown.
the messages array is referentially stable, so if its content changes, its a new array.
Steps to Reproduce / Code Snippets
- create an example, but have the initial message array beeing non-empty
Expected Results
the Chat component should render the initial messages arry
Additional Information
- Nodejs version: 18
- React version: 18.2
- React Native version: 0.72.6
- react-native-gifted-chat version:2.4.0
- Platform(s) (iOS, Android, or both?): web
- TypeScript version: 5.2.2
I have same issue ! I use "t3-oss/create-t3-turbo" (template) a version that I modified so that expo also works on the web, I installed "react-native-gifted-chat" to make it work on my project when I click on a link that opens the chat it doesn't load the messages but when I reload on the actual chat page it displays the messages!