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

Each child in an array or iterator should have a unique key prop.

Open gHashTag opened this issue 9 years ago • 0 comments

simulator screen shot 19 2016 16 12 02

How to make a unique key?

          <Parallax.Image
              onPress={Actions.About}
              style={styles.image}
              overlayStyle={styles.overlay}
              source={{ uri: 'http://shawellnessclinic.com/shamagazine/wp-content/uploads/SHA-Yoga-Class-021-720x481.jpg' }}
              parallaxFactor={PARALLAX_FACTOR}>
              <Text style={styles.title}>О НАС</Text>
          </Parallax.Image>
          <Parallax.Image
              onPress={Actions.Eco}
              style={styles.image}
              overlayStyle={styles.overlay}
              source={{ uri: 'http://shawellnessclinic.com/shamagazine/wp-content/uploads/SHA-Yoga-Class-021-720x481.jpg' }}
              parallaxFactor={PARALLAX_FACTOR}>
              <Text style={styles.title}>ЭКОПРОЕКТЫ</Text>
          </Parallax.Image>
      </Parallax.ScrollView>```

gHashTag avatar Nov 19 '16 13:11 gHashTag