879479119 / react-native-shadow

A SVG shadow component powered with react-native-svg,which can provide shadow on Android like iOS ^_^
MIT License
612 stars 82 forks source link

Warning:Each child in an array or iterator should have a unique "key" prop. #25

Open agilests opened 7 years ago

agilests commented 7 years ago

react-native-shadow:^1.2.1 react-native-svg:^6.0.0

Report this Warning:Each child in an array or iterator should have a unique "key" prop. in Svg(at BorderShadow.js:35)

franj0 commented 6 years ago

just add key prop to parent element inside map arrow function

[1,2,3,4].map((item, key) => { return })

changyu2hao commented 4 years ago

If I only have one component, how can I add the key? like this:

{[ ]}