In loving memory of Her Majesty The Queen 1926-2022

How to do Multiple props rendering in React Native?

React Native related topics are here
Post Reply
admin
Site Admin
Posts: 44

How to do Multiple props rendering in React Native?

Post by admin » Sun Oct 20, 2019 12:42 am

render multiple variables
For rendering multiple props or variables we can use ``.

Code: Select all

render() {
 let firstName = 'test';
 let lastName = 'name';
 return (
 <View style={styles.container}>
 <Text>{`${firstName} ${lastName}` } </Text>
 </View>
 );
 }
Output: test name

Post Reply