Skip to content

Instantly share code, notes, and snippets.

@nhobi
Created April 17, 2017 14:40
Show Gist options
  • Save nhobi/5df4cd3addfabccb11632e3fa7929a58 to your computer and use it in GitHub Desktop.
Save nhobi/5df4cd3addfabccb11632e3fa7929a58 to your computer and use it in GitHub Desktop.
New React Native Component
<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