diff --git a/README.md b/README.md index 67106e8..99e8849 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,10 @@ For Atom, search for `react-native-snippets-horse` in the [Atom Package Manager] export default ed + + export const + es + ### Lifecycle Methods @@ -95,6 +99,11 @@ For Atom, search for `react-native-snippets-horse` in the [Atom Package Manager] shouldComponentUpdate() scud + + mapStateToProps() + mstp + Scaffolds a mapStateToProps function. + static propTypes = {} propTypes diff --git a/snippets/exportConst_react_native.sublime-snippet b/snippets/exportConst_react_native.sublime-snippet new file mode 100644 index 0000000..4298768 --- /dev/null +++ b/snippets/exportConst_react_native.sublime-snippet @@ -0,0 +1,6 @@ + + + es + source.js,source.jsx + export const + \ No newline at end of file diff --git a/snippets/mapStateToProps_react_native.sublime-snippet b/snippets/mapStateToProps_react_native.sublime-snippet new file mode 100644 index 0000000..aeb3cf6 --- /dev/null +++ b/snippets/mapStateToProps_react_native.sublime-snippet @@ -0,0 +1,15 @@ + + { + const { ${3} } = ${2:state.}; + + return { ${4} }; +}]]> + + + + mstp + source.js,source.jsx + mapStateToProps() + \ No newline at end of file