Created
October 3, 2018 13:16
-
-
Save tsh-code/43e74b2ed634ec8cff0ca3c890fa30c8 to your computer and use it in GitHub Desktop.
how-to-make-react-native-1
This file contains hidden or 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 {Button, Text, View} from 'react-native'; | |
class HelloWorld extends Component { | |
handlePress() { | |
// do something | |
} | |
render() { | |
return ( | |
<View> | |
<Text>Hello world!</Text> | |
<Button onPress={this.handlePress}>Press me!</Button> | |
</View>); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment