Guest User

Untitled

a guest
Jun 19th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. import React, { Component } from 'react';
  2. import { AppRegistry, Text, View } from 'react-native';
  3.  
  4. class Greeting extends Component {
  5. render() {
  6. return (
  7. <Text>Hello {this.props.name}!</Text>
  8. );
  9. }
  10. }
  11.  
  12. export default class LotsOfGreetings extends Component {
  13. render() {
  14. return (
  15. <View style={{alignItems: 'center'}}>
  16. <Greeting name='Rexxar' />
  17. <Greeting name='Jaina' />
  18. <Greeting name='Valeera' />
  19. </View>
  20. );
  21. }
  22. }
  23.  
  24. // skip this line if using Create React Native App
  25. AppRegistry.registerComponent('AwesomeProject', () => LotsOfGreetings);
Add Comment
Please, Sign In to add comment