From 9e9a1413f843f09eff4d43c64b7830ff38e1948d Mon Sep 17 00:00:00 2001 From: Elias Gabriel Date: Thu, 9 Jul 2020 12:50:14 -0300 Subject: [PATCH] chore: fix the object name and change to use function on JavaScript snippet --- snippets/snippets.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/snippets.json b/snippets/snippets.json index 4a56614..6742a43 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -12,7 +12,7 @@ "description": "Create React Native Styled Components file" }, - "componentFunctionalTypescript": { + "componentFunctional": { "prefix": "rnfc", "body": [ "import React from 'react';", @@ -20,7 +20,7 @@ "", "// import { Container } from './styles';", "", - "const ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}} = () => {", + "function ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}() {", " return ;", "}", "",