Skip to content

Instantly share code, notes, and snippets.

@stevenschobert
Last active February 23, 2016 20:36
Show Gist options
  • Select an option

  • Save stevenschobert/58af261e12f9221ec980 to your computer and use it in GitHub Desktop.

Select an option

Save stevenschobert/58af261e12f9221ec980 to your computer and use it in GitHub Desktop.
Barebones React Native component
"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