Created
August 17, 2017 15:17
-
-
Save markthethomas/04a49865af8ef2c9a5dd684991305990 to your computer and use it in GitHub Desktop.
React Native sample created by markthethomas - https://repl.it/KOAE/3
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, View, StyleSheet } from 'react-native'; | |
export default class WhyReactNativeIsSoGreat extends Component { | |
render() { | |
return ( | |
<View> | |
<Text> | |
If you like React on the web, you'll like React Native. | |
</Text> | |
<Text> | |
You just use native components like 'View' and 'Text', | |
instead of web components like 'div' and 'span'. | |
</Text> | |
</View> | |
); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment