Last active
March 2, 2017 16:42
-
-
Save brodeynewman/38ff835df7e0deb4b6828203e05a2007 to your computer and use it in GitHub Desktop.
Copy this into your Atom snippets
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
| '.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