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

fix: use messages from props instead of state

Open preynal opened this issue 2 years ago • 4 comments
trafficstars

it's unclear why the messages were attached to state, but there was some effect resetting them, so the chat view was empty, even if it had messages.

the message container now uses the messages from props.

preynal avatar Aug 20 '23 10:08 preynal

This seems to solve https://github.com/FaridSafi/react-native-gifted-chat/issues/2411.

edwinvrgs avatar Nov 17 '23 14:11 edwinvrgs

This seems to solve #2411.

this is the problem I had on the web too!

preynal avatar Nov 17 '23 14:11 preynal

why is this not merged yet?

deemyboy avatar Dec 05 '23 11:12 deemyboy

bump

useEffects avatar Apr 09 '24 19:04 useEffects