Last active
February 7, 2018 19:51
-
-
Save tundaey/719f296d873eca7d45c2f7b818ac090d to your computer and use it in GitHub Desktop.
snippets
This file contains 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
"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