-
Notifications
You must be signed in to change notification settings - Fork 0
/
vscode-javascript.json
61 lines (61 loc) · 1.86 KB
/
vscode-javascript.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"View style height": {
"prefix": "vsh",
"body": ["<View style={{ height: ${1:0} }} />"],
"description": "View style height"
},
"View style width": {
"prefix": "vsw",
"body": ["<View style={{ width: ${1:0} }} />"],
"description": "View style width"
},
"View flexDirection Row": {
"prefix": "vsr",
"body": ["<View style={{ flexDirection: 'row', alignItems: 'center' }}>", "\t<View>$1</View>", "</View>"],
"description": "View flexDirection Row"
},
"TouchableOpacity with text": {
"prefix": "tout",
"body": [
"<TouchableOpacity hitSlop={{ top: 8, left: 8, bottom: 8, right: 8 }} onPress={() => {$2}}>",
"\t<Text style={{ color: 'blue', textDecorationLine: 'underline' }}>$1</Text>",
"</TouchableOpacity>"
],
"description": "TouchableOpacity with text"
},
"KTouchableOpacity with text": {
"prefix": "ktout",
"body": [
"<KTouchableOpacity onPress={() => {$2}}>",
"\t<Text style={{ color: 'blue', textDecorationLine: 'underline' }}>$1</Text>",
"</KTouchableOpacity>"
],
"description": "TouchableOpacity with text"
},
"UseNavigation": {
"prefix": "usen",
"body": ["import { useNavigation } from '@react-navigation/native';", "const navigation = useNavigation();"],
"description": "TouchableOpacity with text"
},
"useDB": {
"prefix": "usedb",
"body": ["const { db } = useDB();"],
"description": "useDB"
},
"useTranslation": {
"prefix": "uset",
"body": [
"import { useTranslation } from 'react-i18next';",
"const { t } = useTranslation();"
],
"description": "use translation (i18next)"
},
"FeatherIcon": {
"prefix": "fea",
"body": [
"import FeatherIcon from 'react-native-vector-icons/Feather';",
"<FeatherIcon name='arrow-left' size={20} color='#3a3a3a' />"
],
"description": "FeatherIcon"
}
}