Skip to content

Instantly share code, notes, and snippets.

@Vanns35
Created August 1, 2020 10:47
Show Gist options
  • Save Vanns35/b78a53baff55998b57100e96e907bb37 to your computer and use it in GitHub Desktop.
Save Vanns35/b78a53baff55998b57100e96e907bb37 to your computer and use it in GitHub Desktop.
React Native Custom Multi Selector - Step 4
{ this.state.SavedPokemon.length > 0 ?
<View style={{ marginTop: 5 }}>
<Text style={styles.selectListTitle}>Your Pokemon List</Text>
<ScrollView>
<View style={styles.cardView}>
{ this.state.SavedPokemon.map(item => (
<View style={styles.cardMain}>
<Image
style={styles.pokeImage}
source={{ uri: item.Avatar }}
/>
<Text style={styles.pokeName}>{item.Name}</Text>
</View>
))}
</View>
</ScrollView>
</View>
:
<Text style={styles.noPokemonSelected}>OOPS! You Dont Have Any Pokemon!</Text>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment