Skip to content

Instantly share code, notes, and snippets.

@brodeynewman
Last active March 2, 2017 16:42
Show Gist options
  • Select an option

  • Save brodeynewman/38ff835df7e0deb4b6828203e05a2007 to your computer and use it in GitHub Desktop.

Select an option

Save brodeynewman/38ff835df7e0deb4b6828203e05a2007 to your computer and use it in GitHub Desktop.
Copy this into your Atom snippets
'.source.js':
'React Native Component':
'prefix': 'rnc'
'body': """
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
class ${1} extends Component {
constructor() {
super()
}
render() {
return (
<View style={styles.container}>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
backgroundColor: '#fafafa'
}
});
export default ${1};
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment