Skip to content

Instantly share code, notes, and snippets.

@himelnagrana
Last active November 29, 2017 05:39
Show Gist options
  • Save himelnagrana/af4aec2b107cb7a6a0655a6e23f3a5de to your computer and use it in GitHub Desktop.
Save himelnagrana/af4aec2b107cb7a6a0655a6e23f3a5de to your computer and use it in GitHub Desktop.
Sample React Native Code
import React, { Component } from 'react';
import { Text, View } from 'react-native';
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