Skip to content

Instantly share code, notes, and snippets.

@tundaey
Last active February 7, 2018 19:51
Show Gist options
  • Save tundaey/719f296d873eca7d45c2f7b818ac090d to your computer and use it in GitHub Desktop.
Save tundaey/719f296d873eca7d45c2f7b818ac090d to your computer and use it in GitHub Desktop.
snippets
"React-Native Stateful Container Components": {
"prefix": "scc-native",
"body": [
"import React from 'react';",
"import { StyleSheet, Text, View } from 'react-native';",
"",
"export class $1 extends React.Component {",
"\trender() {",
"\t\treturn (",
"\t\t\t<View>",
"\t\t\t\t<Text>Open up App.js to start working on your app!</Text>",
"\t\t\t</View>",
"\t\t)",
"\t}",
"}"
]
},
"React-Native Stateless Functional Components": {
"prefix": "sfc-native",
"body": [
"import React from 'react';",
"import { StyleSheet, Text, View } from 'react-native';",
"",
"export function $1 (props) {",
"\treturn (",
"\t\t<View>",
"\t\t\t<Text>Open up App.js to start working on your app!</Text>",
"\t\t</View>",
"\t)",
"}"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment