Fix missing keys in animation example
Summary: There were two warnings about missing keys, fixed them. Closes https://github.com/facebook/react-native/pull/5153 Reviewed By: svcscm Differential Revision: D2807602 Pulled By: androidtrunkagent fb-gh-sync-id: ef7a5eecd297e89b7338fdec65639785a1232f13
This commit is contained in:
parent
7ecb6936bc
commit
37b724eaa6
|
@ -95,6 +95,7 @@ class AnExBobble extends React.Component {
|
||||||
return (
|
return (
|
||||||
<Animated.Image
|
<Animated.Image
|
||||||
{...handlers}
|
{...handlers}
|
||||||
|
key={i}
|
||||||
source={{uri: BOBBLE_IMGS[j]}}
|
source={{uri: BOBBLE_IMGS[j]}}
|
||||||
style={[styles.circle, {
|
style={[styles.circle, {
|
||||||
backgroundColor: randColor(), // re-renders are obvious
|
backgroundColor: randColor(), // re-renders are obvious
|
||||||
|
|
|
@ -77,6 +77,7 @@ class AnExChained extends React.Component {
|
||||||
return (
|
return (
|
||||||
<Animated.Image
|
<Animated.Image
|
||||||
{...handlers}
|
{...handlers}
|
||||||
|
key={i}
|
||||||
source={{uri: CHAIN_IMGS[j]}}
|
source={{uri: CHAIN_IMGS[j]}}
|
||||||
style={[styles.sticker, {
|
style={[styles.sticker, {
|
||||||
transform: this.state.stickers[j].getTranslateTransform(), // simple conversion
|
transform: this.state.stickers[j].getTranslateTransform(), // simple conversion
|
||||||
|
|
Loading…
Reference in New Issue