Skip to content

Instantly share code, notes, and snippets.

@MikyStar
Created November 8, 2018 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikyStar/a43b903e47d9df14b669c0f9d6b6c784 to your computer and use it in GitHub Desktop.
Save MikyStar/a43b903e47d9df14b669c0f9d6b6c784 to your computer and use it in GitHub Desktop.
Customs React-Natives snippets
{
"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