Created
June 15, 2017 22:22
-
-
Save lucianomlima/1a0c7f50b3afddf1be5bcffa257916f1 to your computer and use it in GitHub Desktop.
React Native one file script start
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 { Text, View } from 'react-native'; | |
| export default class App extends Component { | |
| render() { | |
| return ( | |
| <View> | |
| <Text>Hello World!</Text> | |
| </View> | |
| ); | |
| } | |
| } |
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 { AppRegistry } from 'react-native'; | |
| import App from './app'; | |
| AppRegistry.registerComponent('ExampleApp', () => App); |
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 { AppRegistry } from 'react-native'; | |
| import App from './app'; | |
| AppRegistry.registerComponent('ExampleApp', () => App); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment