Skip to content

ThreeDotsIcon throws unique key prop warning #5731

Open
@alexnagelberg

Description

@alexnagelberg

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

  • Android
  • CRA
  • Expo
  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions