Reputation: 1831
I am trying to print an array of JSX elements:
return (
<View
style={[
commonStyles.sectionContainer,
commonStyles.spaceBottom1x,
{ width: "100%" },
]}
>
{ ['a', 'b'].forEach((letter) => {
<View>
<Text>Hola</Text>
</View>
})}
</View>
)
But it does not print... what am I missing?
Upvotes: 0
Views: 34