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

Getting error: Encountered two children with the same key #2499

Open
bilal1031 opened this issue May 16, 2024 · 1 comment
Open

Getting error: Encountered two children with the same key #2499

bilal1031 opened this issue May 16, 2024 · 1 comment

Comments

@bilal1031
Copy link

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
@bilal1031 bilal1031 changed the title Gettin error: Encountered two children with the same key Getting error: Encountered two children with the same key May 16, 2024
@fukemy
Copy link

fukemy commented May 17, 2024

this issue mean your dataset has duplicate item

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

2 participants