Skip to content

Commit 7e40932

Browse files
committed
🎁 adicionando Icon, Text, api
1 parent 5970aff commit 7e40932

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

snippets/snippets.json

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@
88
" ${3}",
99
"`",
1010
"",
11+
"const ${4:Text} = styled.${5:Text}`",
12+
" ${6}",
13+
"`",
14+
"",
1115
"export {",
12-
" ${1:Container}",
16+
" ${1:Container}, ${4:Text},",
1317
"}"
1418
],
1519
"description": "Create React Native Styled Components file"
@@ -19,12 +23,20 @@
1923
"prefix": "rnfc",
2024
"body": [
2125
"import React from 'react'",
26+
"import Icon from 'react-native-vector-icons/MaterialIcons'",
27+
"",
28+
"import { api } from '~/services/api'",
2229
"",
23-
"import { Container } from './styles'",
30+
"import {",
31+
" Container,",
32+
" Text",
33+
"} from './styles'",
2434
"",
2535
"export default function ${1:${TM_DIRECTORY/^.*(\\/|\\\\)([^(\\/|\\\\)]+)$/$2/}}() {",
2636
" return (",
27-
" <Container />",
37+
" <Container>",
38+
" <Text>Test</Text>",
39+
" </Container>",
2840
" )",
2941
"}",
3042
""

0 commit comments

Comments
 (0)