Skip to content

Instantly share code, notes, and snippets.

@jetobe95
Last active June 11, 2020 04:23
Show Gist options
  • Save jetobe95/938ca4a5b56dc830291f4666545594dd to your computer and use it in GitHub Desktop.
Save jetobe95/938ca4a5b56dc830291f4666545594dd to your computer and use it in GitHub Desktop.
{"lastUpload":"2020-06-11T04:23:38.279Z","extensionVersion":"v3.4.3"}
[
{
"metadata": {
"id": "a422a4e7-9271-41b1-8418-ea348eeb257c",
"publisherId": "seunlanlege.action-buttons",
"publisherDisplayName": "seunlanlege"
},
"name": "action-buttons",
"publisher": "seunlanlege",
"version": "1.1.5"
},
{
"metadata": {
"id": "d3836729-9cc1-42c1-b2af-d50071f57d29",
"publisherId": "formulahendry.auto-close-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-close-tag",
"publisher": "formulahendry",
"version": "0.5.7"
},
{
"metadata": {
"id": "6e440e71-8ed9-4f25-bb78-4b13096b8a03",
"publisherId": "formulahendry.auto-rename-tag",
"publisherDisplayName": "formulahendry"
},
"name": "auto-rename-tag",
"publisher": "formulahendry",
"version": "0.1.3"
},
{
"metadata": {
"id": "5619a084-6632-4221-9def-b94bdc42e23a",
"publisherId": "Nash.awesome-flutter-snippets",
"publisherDisplayName": "Nash"
},
"name": "awesome-flutter-snippets",
"publisher": "Nash",
"version": "2.0.3"
},
{
"metadata": {
"id": "697255a9-3f36-44c8-b084-d3b91edfb23a",
"publisherId": "HookyQR.beautify",
"publisherDisplayName": "HookyQR"
},
"name": "beautify",
"publisher": "HookyQR",
"version": "1.5.0"
},
{
"metadata": {
"id": "3cd36144-91f2-487a-a3f0-b13701284c38",
"publisherId": "FelixAngelov.bloc",
"publisherDisplayName": "FelixAngelov"
},
"name": "bloc",
"publisher": "FelixAngelov",
"version": "3.6.0"
},
{
"metadata": {
"id": "b689fcc8-d494-4dbf-a228-2c694a578afc",
"publisherId": "alefragnani.Bookmarks",
"publisherDisplayName": "alefragnani"
},
"name": "Bookmarks",
"publisher": "alefragnani",
"version": "11.2.0"
},
{
"metadata": {
"id": "6c4c71db-5514-453f-82f3-bdc9602ccd2f",
"publisherId": "circlecodesolution.ccs-flutter-color",
"publisherDisplayName": "circlecodesolution"
},
"name": "ccs-flutter-color",
"publisher": "circlecodesolution",
"version": "0.0.8"
},
{
"metadata": {
"id": "e337c67b-55c2-4fef-8949-eb260e7fb7fd",
"publisherId": "Shan.code-settings-sync",
"publisherDisplayName": "Shan"
},
"name": "code-settings-sync",
"publisher": "Shan",
"version": "3.4.3"
},
{
"metadata": {
"id": "121396ad-85a1-45ec-9fd1-d95028a847f5",
"publisherId": "naumovs.color-highlight",
"publisherDisplayName": "naumovs"
},
"name": "color-highlight",
"publisher": "naumovs",
"version": "2.3.0"
},
{
"metadata": {
"id": "f57f68ea-9ee8-42b5-9a97-041d3e4278c4",
"publisherId": "Dart-Code.dart-code",
"publisherDisplayName": "Dart-Code"
},
"name": "dart-code",
"publisher": "Dart-Code",
"version": "3.11.0"
},
{
"metadata": {
"id": "3241e148-a0e7-4f6a-96cb-73dcab582ffa",
"publisherId": "BendixMa.dart-data-class-generator",
"publisherDisplayName": "BendixMa"
},
"name": "dart-data-class-generator",
"publisher": "BendixMa",
"version": "0.3.18"
},
{
"metadata": {
"id": "81fc200f-fa28-4491-8d20-cda841da5566",
"publisherId": "luanpotter.dart-import",
"publisherDisplayName": "luanpotter"
},
"name": "dart-import",
"publisher": "luanpotter",
"version": "0.2.0"
},
{
"metadata": {
"id": "f60a60a6-95ba-42d4-b41c-3d24c1b89588",
"publisherId": "EditorConfig.EditorConfig",
"publisherDisplayName": "EditorConfig"
},
"name": "EditorConfig",
"publisher": "EditorConfig",
"version": "0.15.1"
},
{
"metadata": {
"id": "f6c3ec04-6057-4d9c-b997-69cba07a6158",
"publisherId": "Dart-Code.flutter",
"publisherDisplayName": "Dart-Code"
},
"name": "flutter",
"publisher": "Dart-Code",
"version": "3.11.0"
},
{
"metadata": {
"id": "4de763bd-505d-4978-9575-2b7696ecf94e",
"publisherId": "eamodio.gitlens",
"publisherDisplayName": "eamodio"
},
"name": "gitlens",
"publisher": "eamodio",
"version": "10.2.2"
},
{
"metadata": {
"id": "d6f6cfea-4b6f-41f4-b571-6ad2ab7918da",
"publisherId": "golang.Go",
"publisherDisplayName": "golang"
},
"name": "Go",
"publisher": "golang",
"version": "0.14.4"
},
{
"metadata": {
"id": "25c303dd-9799-4318-9eaf-19d61519beb4",
"publisherId": "mquandalle.graphql",
"publisherDisplayName": "mquandalle"
},
"name": "graphql",
"publisher": "mquandalle",
"version": "0.1.2"
},
{
"metadata": {
"id": "eaa2127d-cb69-4ab9-8505-a60c9ee5f28b",
"publisherId": "oderwat.indent-rainbow",
"publisherDisplayName": "oderwat"
},
"name": "indent-rainbow",
"publisher": "oderwat",
"version": "7.4.0"
},
{
"metadata": {
"id": "b63c44fd-0457-4696-99e9-dbfdf70d77de",
"publisherId": "ritwickdey.LiveServer",
"publisherDisplayName": "ritwickdey"
},
"name": "LiveServer",
"publisher": "ritwickdey",
"version": "5.6.1"
},
{
"metadata": {
"id": "489abeb0-400c-4a08-bde4-cf5d9b863a32",
"publisherId": "Tyriar.lorem-ipsum",
"publisherDisplayName": "Tyriar"
},
"name": "lorem-ipsum",
"publisher": "Tyriar",
"version": "1.2.0"
},
{
"metadata": {
"id": "5cbdf58a-694a-4aba-af08-61d00842eb03",
"publisherId": "bierner.markdown-preview-github-styles",
"publisherDisplayName": "bierner"
},
"name": "markdown-preview-github-styles",
"publisher": "bierner",
"version": "0.1.6"
},
{
"metadata": {
"id": "5db78037-f674-459f-a236-db622c427c5b",
"publisherId": "PKief.material-icon-theme",
"publisherDisplayName": "PKief"
},
"name": "material-icon-theme",
"publisher": "PKief",
"version": "4.1.0"
},
{
"metadata": {
"id": "d80b9a94-f4a6-4e39-bc42-62212e365682",
"publisherId": "pnp.polacode",
"publisherDisplayName": "pnp"
},
"name": "polacode",
"publisher": "pnp",
"version": "0.3.4"
},
{
"metadata": {
"id": "f1f59ae4-9318-4f3c-a9b5-81b2eaa5f8a5",
"publisherId": "ms-python.python",
"publisherDisplayName": "ms-python"
},
"name": "python",
"publisher": "ms-python",
"version": "2020.5.86398"
},
{
"metadata": {
"id": "e05d98bf-3735-4c1e-9fae-86ef0a52e19f",
"publisherId": "quicktype.quicktype",
"publisherDisplayName": "quicktype"
},
"name": "quicktype",
"publisher": "quicktype",
"version": "12.0.46"
},
{
"metadata": {
"id": "aae0701b-111f-49c1-9000-abd37a442f28",
"publisherId": "WallabyJs.quokka-vscode",
"publisherDisplayName": "WallabyJs"
},
"name": "quokka-vscode",
"publisher": "WallabyJs",
"version": "1.0.294"
},
{
"metadata": {
"id": "797a79de-a0fd-4349-9034-bec47be9a941",
"publisherId": "2gua.rainbow-brackets",
"publisherDisplayName": "2gua"
},
"name": "rainbow-brackets",
"publisher": "2gua",
"version": "0.0.6"
},
{
"metadata": {
"id": "633d48b7-d90f-4ba8-a254-17aea549797e",
"publisherId": "jundat95.react-native-snippet",
"publisherDisplayName": "jundat95"
},
"name": "react-native-snippet",
"publisher": "jundat95",
"version": "0.5.6"
},
{
"metadata": {
"id": "93ce222b-5f6f-49b7-9ab1-a0463c6238df",
"publisherId": "ms-vscode-remote.remote-containers",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-containers",
"publisher": "ms-vscode-remote",
"version": "0.117.1"
},
{
"metadata": {
"id": "607fd052-be03-4363-b657-2bd62b83d28a",
"publisherId": "ms-vscode-remote.remote-ssh",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh",
"publisher": "ms-vscode-remote",
"version": "0.51.0"
},
{
"metadata": {
"id": "bfeaf631-bcff-4908-93ed-fda4ef9a0c5c",
"publisherId": "ms-vscode-remote.remote-ssh-edit",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh-edit",
"publisher": "ms-vscode-remote",
"version": "0.51.0"
},
{
"metadata": {
"id": "476ecc1e-b7ff-4c4a-9b47-51c16b2bce34",
"publisherId": "ms-vscode-remote.remote-ssh-edit-nightly",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh-edit-nightly",
"publisher": "ms-vscode-remote",
"version": "2020.6.3953"
},
{
"metadata": {
"id": "fa6b9598-afd0-47b4-95d2-f8b2601840f0",
"publisherId": "ms-vscode-remote.remote-ssh-nightly",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-ssh-nightly",
"publisher": "ms-vscode-remote",
"version": "2020.6.3953"
},
{
"metadata": {
"id": "f0c5397b-d357-4197-99f0-cb4202f22818",
"publisherId": "ms-vscode-remote.remote-wsl",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "remote-wsl",
"publisher": "ms-vscode-remote",
"version": "0.44.2"
},
{
"metadata": {
"id": "5fb19573-2183-4cf2-b53d-0fb869dae7ae",
"publisherId": "foxundermoon.shell-format",
"publisherDisplayName": "foxundermoon"
},
"name": "shell-format",
"publisher": "foxundermoon",
"version": "7.0.1"
},
{
"metadata": {
"id": "9764fb1f-aa45-4e65-a18e-705b3b00761c",
"publisherId": "tinkertrain.theme-panda",
"publisherDisplayName": "tinkertrain"
},
"name": "theme-panda",
"publisher": "tinkertrain",
"version": "1.3.0"
},
{
"metadata": {
"id": "261cac81-cd7b-4555-bb41-0c2d2bcd3e70",
"publisherId": "Gruntfuggly.todo-tree",
"publisherDisplayName": "Gruntfuggly"
},
"name": "todo-tree",
"publisher": "Gruntfuggly",
"version": "0.0.176"
},
{
"metadata": {
"id": "91881318-cfd0-4905-adb7-f4e431ca1ead",
"publisherId": "denoland.vscode-deno",
"publisherDisplayName": "denoland"
},
"name": "vscode-deno",
"publisher": "denoland",
"version": "1.24.0"
},
{
"metadata": {
"id": "ea6a6046-2132-421f-a984-664909fcf0b8",
"publisherId": "hediet.vscode-drawio",
"publisherDisplayName": "hediet"
},
"name": "vscode-drawio",
"publisher": "hediet",
"version": "0.6.6"
},
{
"metadata": {
"id": "583b2b34-2c1e-4634-8c0b-0b82e283ea3a",
"publisherId": "dbaeumer.vscode-eslint",
"publisherDisplayName": "dbaeumer"
},
"name": "vscode-eslint",
"publisher": "dbaeumer",
"version": "2.1.5"
},
{
"metadata": {
"id": "9ccc1dd7-7ec4-4a46-bd4f-7d7b8b9d322a",
"publisherId": "vscode-icons-team.vscode-icons",
"publisherDisplayName": "vscode-icons-team"
},
"name": "vscode-icons",
"publisher": "vscode-icons-team",
"version": "10.1.1"
},
{
"metadata": {
"id": "47e020a1-33db-4cc0-a1b4-42f97781749a",
"publisherId": "MS-CEINTL.vscode-language-pack-es",
"publisherDisplayName": "MS-CEINTL"
},
"name": "vscode-language-pack-es",
"publisher": "MS-CEINTL",
"version": "1.45.1"
},
{
"metadata": {
"id": "5b45bff0-e35e-4317-8686-1625c2a9c411",
"publisherId": "adamvoss.vscode-languagetool",
"publisherDisplayName": "adamvoss"
},
"name": "vscode-languagetool",
"publisher": "adamvoss",
"version": "3.8.0"
},
{
"metadata": {
"id": "10666332-1b17-4ccf-a38b-2410de701715",
"publisherId": "adamvoss.vscode-languagetool-es",
"publisherDisplayName": "adamvoss"
},
"name": "vscode-languagetool-es",
"publisher": "adamvoss",
"version": "3.8.0"
},
{
"metadata": {
"id": "99bb71cc-b8a5-43bf-b6a8-371f9f0f4ca3",
"publisherId": "fabiospampinato.vscode-monokai-night",
"publisherDisplayName": "fabiospampinato"
},
"name": "vscode-monokai-night",
"publisher": "fabiospampinato",
"version": "1.6.0"
},
{
"metadata": {
"id": "b35cd5b4-18db-46f9-ba9e-06096c3b22d3",
"publisherId": "msjsdiag.vscode-react-native",
"publisherDisplayName": "msjsdiag"
},
"name": "vscode-react-native",
"publisher": "msjsdiag",
"version": "0.16.0"
},
{
"metadata": {
"id": "23d72dfc-8dd1-4e30-926e-8783b4378f13",
"publisherId": "ms-vscode-remote.vscode-remote-extensionpack",
"publisherDisplayName": "ms-vscode-remote"
},
"name": "vscode-remote-extensionpack",
"publisher": "ms-vscode-remote",
"version": "0.20.0"
}
]
{
"window.zoomLevel": 0,
"workbench.startupEditor": "newUntitledFile",
"workbench.iconTheme": "material-icon-theme",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"java.errors.incompleteClasspath.severity": "ignore",
"workbench.colorTheme": "Monokai Night",
"material-icon-theme.activeIconPack": "react_redux",
"extensions.ignoreRecommendations": true,
"git.enableSmartCommit": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"git.confirmSync": false,
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"workbench.tree.indent": 16,
"terminal.integrated.rendererType": "dom",
"terminal.integrated.shellArgs.osx": [
"-l"
],
"workbench.activityBar.visible": true,
"files.autoSave": "off",
"terminal.integrated.shell.osx": "/bin/zsh",
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"files.associations": {
"*.js": "javascript"
},
"vsicons.dontShowNewVersionMessage": true,
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"editor.fontSize": 15,
"dart.flutterSdkPath": "/Users/gocargo/flutter",
"typescript.updateImportsOnFileMove.enabled": "never",
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"liveServer.settings.donotShowInfoMsg": true,
"explorer.compactFolders": false,
"diffEditor.ignoreTrimWhitespace": false,
"material-icon-theme.folders.associations": {
"bloc": "ngrx-store",
"widgets": "components",
},
"todo-tree.tree.showScanModeButton": false,
"workbench.sideBar.location": "left",
"git.inputValidationLength": 50,
"git.inputValidationSubjectLength": 500,
"hediet.vscode-drawio.local-storage": "eyIuZHJhd2lvLWNvbmZpZyI6IntcImxhbmd1YWdlXCI6XCJcIixcImN1c3RvbUZvbnRzXCI6W10sXCJsaWJyYXJpZXNcIjpcImdlbmVyYWw7ZXJcIixcImN1c3RvbUxpYnJhcmllc1wiOltcIkwuc2NyYXRjaHBhZFwiXSxcInBsdWdpbnNcIjpbXSxcInJlY2VudENvbG9yc1wiOltdLFwiZm9ybWF0V2lkdGhcIjowLFwiY3JlYXRlVGFyZ2V0XCI6ZmFsc2UsXCJwYWdlRm9ybWF0XCI6e1wieFwiOjAsXCJ5XCI6MCxcIndpZHRoXCI6ODI3LFwiaGVpZ2h0XCI6MTE2OX0sXCJzZWFyY2hcIjp0cnVlLFwic2hvd1N0YXJ0U2NyZWVuXCI6dHJ1ZSxcImdyaWRDb2xvclwiOlwiI2QwZDBkMFwiLFwiZGFya0dyaWRDb2xvclwiOlwiIzZlNmU2ZVwiLFwiYXV0b3NhdmVcIjp0cnVlLFwicmVzaXplSW1hZ2VzXCI6bnVsbCxcIm9wZW5Db3VudGVyXCI6MCxcInZlcnNpb25cIjoxOCxcInVuaXRcIjoxLFwiaXNSdWxlck9uXCI6ZmFsc2UsXCJ1aVwiOlwiXCJ9In0=",
"sync.gist": "938ca4a5b56dc830291f4666545594dd",
"sync.autoUpload": true,
"sync.autoDownload": true,
"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe",
"terminal.integrated.shellArgs.windows": [
"/k C:\\Users\\Jetobe\\cmder\\vendor\\init.bat"
]
}
{
"Print to console": {
"prefix": "clg",
"body": [
"console.log('$1');",
],
"description": "Log output to console"
},
"React Native Component": {
"prefix": "imrnc",
"body": [
"import React, { Component } from \"react\";",
"import { \n\tView,\n\tText,\n\tStyleSheet\n} from \"react-native\";",
"\nclass ${1:componentName} extends Component {",
"\trender() {",
"\t\treturn (",
"\t\t\t<View style={styles.container}>",
"\t\t\t\t<Text>${1:componentName}</Text>",
"\t\t\t</View>",
"\t\t);",
"\t}",
"}",
"export default ${1:componentName};",
"\nconst styles = StyleSheet.create({",
"\tcontainer: {",
"\t\tflex: 1,",
"\t\talignItems: 'center',",
"\t\tjustifyContent: 'center'",
"\t}",
"});"
],
"description": "React Component"
},
"Create StyleSheet": {
"prefix": "imrnss",
"body": [
"const styles = StyleSheet.create({",
"\n$0",
"\n});\n"
],
"description": "Const Styles"
},
"console.log": {
"prefix": "clog",
"body": [
"console.log(${1:})"
],
"description": "console.log"
},
"React Native Pan Responder": {
"prefix": "imrnp",
"body": [
"this.panResponder = PanResponder.create({",
"\n\tonMoveShouldSetPanResponder: (evt, gestureState) => true,",
"\tonPanResponderGrant: (evt, gestureState) =>{",
"\n\t},",
"\tonPanResponderMove: (evt, gestureState) => {",
"\n\t},",
"\tonPanResponderRelease: (evt, gestureState) => {",
"\n\t},",
"\n})"
],
"description": "React Native Pan Responder"
},
"React Native Functional Component": {
"prefix": "imrnfc",
"body": [
"import React from \"react\";",
"import { \n\tView,\n\tText,\n\tStyleSheet\n} from \"react-native\";",
"\nconst ${1:componentName} = (props) => (",
"\t<View style={styles.container}>",
"\t\t<Text>${1:componentName}</Text>",
"\t</View>",
"\t)",
"export default ${1:componentName};",
"\nconst styles = StyleSheet.create({",
"\tcontainer: {",
"\t\tflex: 1,",
"\t\talignItems: 'center',",
"\t\tjustifyContent: 'center'",
"\t}",
"});"
],
"description": "React Native Functional Component"
},
"React Native Map Function": {
"prefix": "rnmap",
"body": [
"return ${1:items}.map((item,index)=>{",
"\treturn(",
"\t\t${2:<View></View>}",
")})"
],
"description": "javscript map method"
},
"React Native Dimensions": {
"prefix": "rndime",
"body": [
"const {width,height} = Dimensions.get('window')"
],
"description": "Dimensions RN"
},
"React Native Component Only": {
"prefix": "rncomp",
"body": [
"\nclass ${1:componentName} extends Component{",
"\trender(){",
"\t\treturn (",
"\t\t\t<View style={{flex:1,alignItems:'center',justifyContent:'center'}}>",
"\t\t\t\t<Text>${1:componentName}</Text>",
"\t\t\t</View>",
"\t\t);",
"\t}",
"}"
],
"description": "New React Native Component"
},
"React Native Functional Component Only": {
"prefix": "rnfcomp",
"body": [
"\nconst ${1:componentName} = (props) => (",
"\t<View style={{flex:1,alignItems:'center',justifyContent:'center'}}>",
"\t\t<Text>${1:componentName}</Text>",
"\t</View>",
")"
],
"description": "New React Native Component"
},
"state": {
"prefix": "cs",
"body": [
"const { $1 } = this.state;"
]
},
"props": {
"prefix": "cp",
"body": [
"const { $1 } = this.props;"
]
},
"Class Method": {
"prefix": "mt",
"body": [
"${1:method} = ($2) => {",
"\t$3",
"}"
]
},
"border": {
"prefix": "bor",
"body": [
"borderColor:'red',",
"borderWidth:1,"
]
},
"try":{
"prefix": "service",
"body": ["async $1() {",
" try {",
" const response = await Fetch($2);",
" const status = _.get(response, 'status');",
" const { res, success } = validator_res(status)",
"if (success) {",
" const data = _.get(response, 'data')",
" return mapResponse(true, data)",
" } else {",
" throw new Error(res)",
" }",
" } catch (error) {",
" return mapResponse(false, error.message)",
" }",
"}"]
}
}
{
/*
// Place your snippets for JavaScript React here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
*/ "React Native Component": {
"prefix": "imrnc",
"body": [
"import React, { Component } from \"react\";",
"import { \n\tView,\n\tText,\n\tStyleSheet\n} from \"react-native\";",
"\nclass ${1:componentName} extends Component {",
"\trender() {",
"\t\treturn (",
"\t\t\t<View style={styles.container}>",
"\t\t\t\t<Text>${1:componentName}</Text>",
"\t\t\t</View>",
"\t\t);",
"\t}",
"}",
"export default ${1:componentName};",
"\nconst styles = StyleSheet.create({",
"\tcontainer: {",
"\t\tflex: 1,",
"\t\talignItems: 'center',",
"\t\tjustifyContent: 'center'",
"\t}",
"});"
],
"description": "React Component"
},
"Create StyleSheet": {
"prefix": "imrnss",
"body": [
"const styles = StyleSheet.create({",
"\n$0",
"\n});\n"
],
"description": "Const Styles"
},
"console.log": {
"prefix": "clog",
"body": [
"console.log(${1:})"
],
"description": "console.log"
},
"React Native Pan Responder": {
"prefix": "imrnp",
"body": [
"this.panResponder = PanResponder.create({",
"\n\tonMoveShouldSetPanResponder: (evt, gestureState) => true,",
"\tonPanResponderGrant: (evt, gestureState) =>{",
"\n\t},",
"\tonPanResponderMove: (evt, gestureState) => {",
"\n\t},",
"\tonPanResponderRelease: (evt, gestureState) => {",
"\n\t},",
"\n})"
],
"description": "React Native Pan Responder"
},
"React Native Functional Component": {
"prefix": "imrnfc",
"body": [
"import React from \"react\";",
"import { \n\tView,\n\tText,\n\tStyleSheet\n} from \"react-native\";",
"\nconst ${1:componentName} = (props) => (",
"\t<View style={styles.container}>",
"\t\t<Text>${1:componentName}</Text>",
"\t</View>",
"\t)",
"export default ${1:componentName};",
"\nconst styles = StyleSheet.create({",
"\tcontainer: {",
"\t\tflex: 1,",
"\t\talignItems: 'center',",
"\t\tjustifyContent: 'center'",
"\t}",
"});"
],
"description": "React Native Functional Component"
},
"React Native Map Function": {
"prefix": "rnmap",
"body": [
"return ${1:items}.map((item,index)=>{",
"\treturn(",
"\t\t${2:<View></View>}",
")})"
],
"description": "javscript map method"
},
"React Native Dimensions": {
"prefix": "rndime",
"body": [
"const {width,height} = Dimensions.get('window')"
],
"description": "Dimensions RN"
},
"React Native Component Only":{
"prefix":"rncomp",
"body":[
"\nclass ${1:componentName} extends Component{",
"\trender(){",
"\t\treturn (",
"\t\t\t<View style={{flex:1,alignItems:'center',justifyContent:'center'}}>",
"\t\t\t\t<Text>${1:componentName}</Text>",
"\t\t\t</View>",
"\t\t);",
"\t}",
"}"
],
"description":"New React Native Component"
},
"React Native Functional Component Only":{
"prefix":"rnfcomp",
"body":[
"\nconst ${1:componentName} = (props) => (",
"\t<View style={{flex:1,alignItems:'center',justifyContent:'center'}}>",
"\t\t<Text>${1:componentName}</Text>",
"\t</View>",
")"
],
"description":"New React Native Component"
}
}
{
// Place your snippets for typescript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "clg",
"body": [
"console.log('$1')"
],
"description": "Log output to console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment