879479119 / react-native-shadow

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

Each child in an array or iterator should have a unique "key" prop. Check the render method of `BoxShadow`. See https://fb.me/react-warning-keys for more information. #4

Closed Lxxyx closed 7 years ago

Lxxyx commented 7 years ago

Warning: Each child in an array or iterator should have a unique "key" prop. Check the render method of BoxShadow. See https://fb.me/react-warning-keys for more information.

BoxShadow._this.render @ BoxShadow.js:32

jimthedev commented 7 years ago

I also had this issue. I think my PR should fix it. @879479119 can you review?

agilests commented 6 years ago

I see the source, you add the prop 'key',but the warning remains! <Stop offset="0" stopColor={color} stopOpacity={opacity} key={key+'Linear0'} />, <Stop offset="1" stopColor={color} stopOpacity="0" key={key+'Linear1'} />

My dependencies is: react-native-shadow:^1.2.1 react-native-svg:^6.0.0