From b721592edeb5b9fba5e917b184212d129f53fd90 Mon Sep 17 00:00:00 2001 From: hyochan Date: Sat, 7 Sep 2024 14:12:22 +0900 Subject: [PATCH] chore: sample dooboo vscode snippet --- .vscode/dooboo.code-snippets | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .vscode/dooboo.code-snippets diff --git a/.vscode/dooboo.code-snippets b/.vscode/dooboo.code-snippets new file mode 100644 index 0000000..7b9ba9e --- /dev/null +++ b/.vscode/dooboo.code-snippets @@ -0,0 +1,32 @@ +{ + "monymony React Native Component": { + "prefix": "dooboo", + "body": [ + "/**", + " * @name $1", + " *", + " * See the style guide: https://github.com/hyochan/style-guide/blob/main/docs/REACT.md", + " */", + "import styled from '@emotion/native';", + "import {View} from 'react-native';", + "", + "type Props = {}", + "", + "function $1({}: Props): JSX.Element {", + "", + " return (", + " ", + " ", + " ", + " )", + "}", + "", + "export default $1", + "", + "const Container = styled.View`", + " flex: 1;", + "`" + ], + "description": "React Native Component" + } +}