Created
August 1, 2020 09:29
-
-
Save Vanns35/54e0cb0bc0dea0c99ef2fa64ed5b1bf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ 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