Skip to content

Instantly share code, notes, and snippets.

@ozcanzaferayan
Last active February 23, 2024 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozcanzaferayan/0b59231445fe75b8d177b6d1d1749dfc to your computer and use it in GitHub Desktop.
Save ozcanzaferayan/0b59231445fe75b8d177b6d1d1749dfc to your computer and use it in GitHub Desktop.
React Create Component Snippet
{
"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