Created
April 17, 2017 14:40
-
-
Save nhobi/5df4cd3addfabccb11632e3fa7929a58 to your computer and use it in GitHub Desktop.
New React Native Component
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
<snippet> | |
<content><![CDATA[ | |
import React, { Component } from "react"; | |
import { | |
View, | |
Text, | |
TouchableWithoutFeedback, | |
Image, | |
Animated | |
} from "react-native"; | |
import ${2:styles} from "./styles"; | |
class ${1:ClassName} extends Component { | |
constructor(props) { | |
super(props); | |
this.state = {}; | |
} | |
componentWillMount() { | |
} | |
componentDidMount() { | |
} | |
render() { | |
return <Text>Component: ${1:ClassName}</Text>; | |
} | |
} | |
module.exports = ${1:ClassName}; | |
]]></content> | |
<description>React Native Component</description> | |
<tabTrigger>rncom</tabTrigger> | |
<scope>source.js</scope> | |
</snippet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment