From e63c36a5df0ef7cf2e2f5996c295b48fbd6dd7f9 Mon Sep 17 00:00:00 2001 From: Ritesh Makan Date: Thu, 21 Jun 2018 16:55:32 +0200 Subject: [PATCH 1/2] Added export const --- README.md | 4 ++++ snippets/exportConst_react_native.sublime-snippet | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 snippets/exportConst_react_native.sublime-snippet diff --git a/README.md b/README.md index 67106e8..0af9601 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 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 From e80605d8f1bbf4fae1d884b4237d6ab4438011ac Mon Sep 17 00:00:00 2001 From: Ritesh Makan Date: Thu, 21 Jun 2018 17:22:13 +0200 Subject: [PATCH 2/2] Added mapStateToProps() --- README.md | 5 +++++ .../mapStateToProps_react_native.sublime-snippet | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 snippets/mapStateToProps_react_native.sublime-snippet diff --git a/README.md b/README.md index 0af9601..99e8849 100644 --- a/README.md +++ b/README.md @@ -99,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/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