Created
November 8, 2018 10:14
-
-
Save MikyStar/a43b903e47d9df14b669c0f9d6b6c784 to your computer and use it in GitHub Desktop.
Customs React-Natives snippets
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
Show hidden characters
{ | |
"Class-Component": | |
{ | |
"prefix": "RN-ClassComponent", | |
"body": | |
[ | |
"import React, { Component } from 'react';", | |
"\n", | |
"class ${TM_FILENAME_BASE} extends Component", | |
"{", | |
"\trender()", | |
"\t\t{", | |
"\t\t\treturn\t(", | |
"\t\t\t\t\t\t$0", | |
"\t\t\t\t\t);", | |
"\t\t}", | |
"}", | |
"\n", | |
"export default ${TM_FILENAME_BASE}" | |
], | |
"description": "React-Native class component" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment