Created
March 13, 2017 08:57
-
-
Save am-MongoDB/9d45645c7429ddfe699fa36944880ac2 to your computer and use it in GitHub Desktop.
React Native components
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 { AppRegistry, Text } from 'react-native'; | |
| class HelloWorldApp extends Component { | |
| render() { | |
| return ( | |
| <View> | |
| <Text>Hello There!</Text> | |
| <Text>This is a very simple Native React component.</Text> | |
| </View> | |
| ); | |
| } | |
| } | |
| AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment