Skip to content

Instantly share code, notes, and snippets.

@iRoachie
Created May 12, 2017 13:23
Show Gist options
  • Save iRoachie/58ad45d2d766971d5474420ccfeb03b0 to your computer and use it in GitHub Desktop.
Save iRoachie/58ad45d2d766971d5474420ccfeb03b0 to your computer and use it in GitHub Desktop.
Typescript React Native functional component Snippet
"React Native Functional Component": {
"prefix": "tsf",
"body": [
"import React from 'react'",
"import {",
" View,",
" Text,",
" StyleSheet,",
" ViewStyle,",
" TextStyle",
"} from 'react-native'",
"",
"interface $1Props {}",
"",
"const $1 = (props: $1Props) => {",
" return (<View />)",
"}",
"",
"export default $1"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment