Last active
February 23, 2016 20:36
-
-
Save stevenschobert/58af261e12f9221ec980 to your computer and use it in GitHub Desktop.
Barebones React Native component
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
| "use strict"; | |
| import React, { | |
| StyleSheet, | |
| Text, | |
| View | |
| } from "react-native"; | |
| const styles = StyleSheet.create({ | |
| container: { | |
| flex: 1 | |
| } | |
| }); | |
| class MyComponent extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| render() { | |
| return ( | |
| <View style={styles.container}> | |
| <Text>MyComponent</Text> | |
| </View> | |
| ); | |
| } | |
| } | |
| export default MyComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment