Last active
August 4, 2021 16:02
-
-
Save tomasflopes/d708b018a904483da354c65cdcc6c5de to your computer and use it in GitHub Desktop.
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
{ | |
"Create React-Native BoilerPlate": { | |
"prefix": "rnfc", | |
"body": [ | |
"import React from 'react';", | |
"import { Text, View } from 'react-native';", | |
"", | |
"import styles from './styles';", | |
"", | |
"const ${TM_DIRECTORY/.*\\/(.*)$/$1/g}: React.FC = () => {", | |
" return (", | |
" <View style={styles.container}>", | |
" <Text style={styles.title}>${TM_DIRECTORY/.*\\/(.*)$/$1/g}</Text>", | |
" </View>", | |
" );", | |
"}", | |
"", | |
"export default ${TM_DIRECTORY/.*\\/(.*)$/$1/g};", | |
"" | |
] | |
}, | |
"Create ReactJS BoilerPlate": { | |
"prefix": "rfc", | |
"body": [ | |
"import React from 'react';", | |
"", | |
"import { Container } from './styles';", | |
"", | |
"const ${TM_DIRECTORY/.*\\/(.*)$/$1/g}: React.FC = () => {", | |
" return (", | |
" <Container>", | |
" <span>${TM_DIRECTORY/.*\\/(.*)$/$1/g}</span>", | |
" </Container>", | |
" );", | |
"}", | |
"", | |
"export default ${TM_DIRECTORY/.*\\/(.*)$/$1/g};", | |
"" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment