react-native-shadow icon indicating copy to clipboard operation
react-native-shadow copied to clipboard

BoxShadow Issue

Open callmejm opened this issue 7 years ago • 1 comments

I getting this error when try to use BoxShadow in my project.

Warning: Each child in an array or iterator should have a unique "key" prop.
Check the render method of `BorderShadow`. See https://fb.me/react-warning-keys for more information.
in Svg (at BorderShadow.js:35)
in BorderShadow (at index.android.js:334)
in RCTView (at View.js:113)
in View (at index.android.js:333)
in RCTView (at View.js:113)
in View (at CardStack.js:400)
in RCTView (at View.js:113)
in View (at AnimatedImplementation.js:1865)
in AnimatedComponent (at Card.js:28)
in Card (at PointerEventsContainer.js:55)
in Container (at CardStack.js:443)
in RCTView (at View.js:113)

callmejm avatar Oct 05 '17 10:10 callmejm

you must set up a key param when you are using a loop that output ReactElements, for example

items.map((item,i) => <View key={i}>{i}</View>)

arcollector avatar Oct 12 '17 14:10 arcollector