Skip to content

Instantly share code, notes, and snippets.

@markthethomas
Created August 17, 2017 15:17
Show Gist options
  • Save markthethomas/04a49865af8ef2c9a5dd684991305990 to your computer and use it in GitHub Desktop.
Save markthethomas/04a49865af8ef2c9a5dd684991305990 to your computer and use it in GitHub Desktop.
React Native sample created by markthethomas - https://repl.it/KOAE/3
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