We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello there,
When we are returning from a render function is there a way to concatenate multiple view elements before returning.
Ex: let's say you want to generate Text elements using a for loop? Then returning it from a render function.
The text was updated successfully, but these errors were encountered:
haha :) this is related to my demand on your github project : iSimar/HackerNews-React-Native#2 ?
I'm also interested in knowing how to achieve something like that :)
Sorry, something went wrong.
This works just fine:
var text = ['aaaa', 'bbbb', 'cccc']; return ( <View style={styles.container}> {text.map(t => <Text>{t}</Text>)} </View> );
Perfect, Thank you.
No branches or pull requests
Hello there,
When we are returning from a render function is there a way to concatenate multiple view elements before returning.
Ex: let's say you want to generate Text elements using a for loop? Then returning it from a render function.
The text was updated successfully, but these errors were encountered: