Created
March 26, 2017 01:40
-
-
Save opr/c43e0082f2eb5dcb61434db05910d920 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import {Text} from 'react-native'; | |
class Greeting extends Component { | |
render() { | |
return ( | |
<Text>Hello {this.props.name}!</Text> | |
); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import { AppRegistry, Image, View } from 'react-native'; | |
import { Greeting } from './components/Greeting'; | |
class App extends Component { | |
render() { | |
return ( | |
<View style={{alignItems: 'center'}}> | |
<Greeting name='Rexxar' /> | |
<Greeting name='Jaina' /> | |
<Greeting name='Valeeratttt' /> | |
</View> | |
); | |
} | |
} | |
AppRegistry.registerComponent('TafsAndMetars', () => App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment