Let's say you have an array of components:
var my_array = [ <SomeComponent1 textcolor={defaultFontColor} />, <MyComponent2 textcolor={defaultFontColor} />}, <SomeComponent3 textcolor={defaultFontColor} />}, ...]
And you wanted to iterate over the array, but also pass props to the component (in the example, AComponent):
my_array.map(AComponent => {
return (
<View>
{AComponent}
</View>
)
})
How would I pass a prop to {AComponent} in this example?