I'm trying to print My letters array on the screen and nothing is currently showing.
I've also tried to wrap the touchableOpacity view another View also or change it to View or Text only but I didn't succeeded yet.
const letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m'];
const OptionalLetters = props => {
const mixedLetters = () => {
letters.map(()=> (letter, key) => {
return (
<TouchableOpacity key={Math.random()} onPress={()=> console.log('letter pressed')}>
<Text>{letter}</Text>
</TouchableOpacity>
)
})
}
return (
<View style={styles.screen}>
{mixedLetters()}
</View>
)
}
Textis a component ?. Please show the html ofText