react-native-dropdown-picker icon indicating copy to clipboard operation
react-native-dropdown-picker copied to clipboard

Warning: Each child in a list should have a unique "key" prop. Check the render method of `Picker`.

Open Akshaybagai52 opened this issue 1 year ago • 1 comments

I'm getting this warning in only that picker where I'm using this as data :- [ {"label": "123 Main St, Dummy City", "value": "123 Main St, Dummy City"}, {"label": "456 Elm St, Dummyville", "value": "456 Elm St, Dummyville"}, {"label": "789 Oak St, Faketown", "value": "789 Oak St, Faketown"}, {"label": "101 Pine St, Dummy Falls", "value": "101 Pine St, Dummy Falls"}, {"label": "202 Maple St, Imaginary Town", "value": "202 Maple St, Imaginary Town"}, {"label": "303 Cedar St, Pretendville", "value": "303 Cedar St, Pretendville"} ] this data I'm getting from Api Response. I don't know why this giving me error Thanks for your help

Akshaybagai52 avatar Nov 06 '23 04:11 Akshaybagai52

provide a key value on each of those objects. https://react.dev/learn/rendering-lists#rules-of-keys

LyDawei avatar Jan 26 '24 16:01 LyDawei