Skip to content

Instantly share code, notes, and snippets.

@notgiorgi
Created October 9, 2017 08:16
Show Gist options
  • Save notgiorgi/0af3e4868ef5e078824ae7cb516c78c4 to your computer and use it in GitHub Desktop.
Save notgiorgi/0af3e4868ef5e078824ae7cb516c78c4 to your computer and use it in GitHub Desktop.
VS Code react-native useful snippets
{
"import stylesheet": {
"prefix": "istyle",
"body": [
"import { StyleSheet } from 'react-native'",
"",
"export default StyleSheet.create({})",
""
],
"description": "import stylesheet"
},
"import common": {
"prefix": "icfull",
"body": [
"import React from 'react'",
"import PropTypes from 'prop-types'",
"import { View } from 'react-native'"
]
},
"import common full": {
"prefix": "icfull",
"body": [
"import React from 'react'",
"import PropTypes from 'prop-types'",
"import { View } from 'react-native'",
"",
"class $1 extends React.Component {",
" render() {",
" return <View />",
" }",
"}",
"",
"$1.defaultProps = {}",
"",
"$1.propTypes = {}",
"",
"export default $1",
""
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment