forked from kat-tax/figma-to-react-native
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild-figma-plugin.manifest.js
57 lines (57 loc) · 1.31 KB
/
build-figma-plugin.manifest.js
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
module.exports = (manifest) => ({
...manifest,
codegenLanguages: [
{
label: 'React Native',
value: 'react-native',
},
],
codegenPreferences: [
{
label: 'Tab Size',
itemType: 'select',
propertyName: 'tab-size',
options: [
{label: '2', value: '2', isDefault: true},
{label: '4', value: '4'},
{label: '8', value: '8'}
],
},
{
label: 'Quote Style',
itemType: 'select',
propertyName: 'quote-style',
options: [
{label: 'Single', value: 'single', isDefault: true},
{label: 'Double', value: 'double'},
],
},
{
label: 'White Space',
itemType: 'select',
propertyName: 'white-space',
options: [
{label: 'Spaces', value: 'spaces', isDefault: true},
{label: 'Tabs', value: 'tabs'},
],
},
{
label: 'React Import',
itemType: 'select',
propertyName: 'react-import',
options: [
{label: 'Enabled', value: 'on', isDefault: true},
{label: 'Disabled', value: 'off'},
],
},
{
label: 'Translate',
itemType: 'select',
propertyName: 'translate',
options: [
{label: 'Enabled', value: 'on'},
{label: 'Disabled', value: 'off', isDefault: true},
],
},
],
});