GeekyAnts / GeekyAnts/NativeBase

ThreeDotsIcon throws unique key prop warning

Open
#5,731 3 comments 0 reactions 0 assignees View on GitHub
bug triage v3
Dominant language
TypeScript
Stars
20.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

### Description

When using ThreeDotsIcon (used in IconButton specifically) it throws a react warning about not having key props

### CodeSandbox/Snack link

https://snack.expo.dev/t3JUBCRz-

### Steps to reproduce

(haven't tested CRA but it should complain -- it loves to complain about those. did test with metro.)
1. Init react-native app (npx react-native init ...)
2. Add element in app
3. Run with metro
4. See complaint either in devtools warning popup or in metro console

### NativeBase Version

3.4.28

### Platform

- [X] Android
- [X] CRA
- [ ] Expo
- [X] iOS
- [ ] Next

### Other Platform

_No response_

### Additional Information

"Warning: Each child in a list should have a unique "key" prop."

Looks like it's a bug because the path passed is an array of items to render vs the other icons which is just a single element

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.