Welcome to %s forums

<No. 1 Community for developers, by developers/>

Login Register

How to do Multiple props rendering in React Native?

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

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