Getting error: Encountered two children with the same key
Issue Description
Getting errors on messages render
Warning: Encountered two children with the same key,
.$g9AHqhABMZZEVgjZx6CKbU3XKkj2. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.
Steps to Reproduce / Code Snippets
I am getting this error on a project using Expo SDK 51
- Nodejs version: 20
- React version: 18.2.0
- React Native version: 0.74.1
- react-native-gifted-chat version: ^2.4.0
- Platform(s) (iOS, Android, or both?): both
- TypeScript version: 5.3.3
this issue mean your dataset has duplicate item
@fukemy @bilal1031 how can this be solved, I am also facing similar error
@fukemy @bilal1031 how can this be solved, I am also facing similar error
check your code, I am sure you have duplicate data with same id
I've noticed this issue as well, particularly using Expo when I hot-reload by saving the component after making a change. Something to do with a re-render there possibly?