Last active
February 23, 2024 13:30
-
-
Save ozcanzaferayan/0b59231445fe75b8d177b6d1d1749dfc to your computer and use it in GitHub Desktop.
React Create Component Snippet
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
Show hidden characters
{ | |
"Component": { | |
"prefix": ["comp"], | |
"body": [ | |
"import { View, Text } from 'react-native'", | |
"import React from 'react'", | |
"", | |
"type Props = {}", | |
"", | |
"const ${TM_FILENAME_BASE} = (props: Props) => {", | |
" return (", | |
" <View>", | |
" <Text>${1:text}</Text>", | |
" </View>", | |
" )", | |
"}", | |
"", | |
"export default ${TM_FILENAME_BASE}", | |
], | |
"description": "Creates component." | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment