Skip to content

Instantly share code, notes, and snippets.

@tomasflopes
Last active August 4, 2021 16:02
Show Gist options
  • Save tomasflopes/d708b018a904483da354c65cdcc6c5de to your computer and use it in GitHub Desktop.
Save tomasflopes/d708b018a904483da354c65cdcc6c5de to your computer and use it in GitHub Desktop.
{
"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