-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathicon.playground.jsx
More file actions
109 lines (100 loc) · 2.19 KB
/
icon.playground.jsx
File metadata and controls
109 lines (100 loc) · 2.19 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import * as React from "react";
import { Icon } from "react-native-elements";
import Playground from "../../components/playground";
import { useView, PropTypes } from "react-view";
const IconPlayground = () => {
const params = useView({
componentName: "Icon",
props: {
brand: {
type: PropTypes.Boolean,
value: false,
},
color: {
type: PropTypes.String,
value: "#0CC",
},
Component: {
type: PropTypes.ReactNode,
value: null,
description:
"View if no onPress method is defined, TouchableHighlight if onPress method is defined",
},
containerStyle: {
type: PropTypes.Object,
value: `{}`,
},
disabled: {
type: PropTypes.Boolean,
value: false,
},
disabledStyle: {
type: PropTypes.Object,
value: `{}`,
},
iconProps: {
type: PropTypes.Object,
value: `{}`,
description: "{...Icon props}",
},
iconStyle: {
type: PropTypes.Object,
value: `{}`,
},
name: {
type: PropTypes.String,
value: "devices",
},
onLongPress: {
type: PropTypes.Function,
value: `() => console.log("onLongPress()")`,
},
onPress: {
type: PropTypes.Function,
value: `() => console.log("onPress()")`,
},
raised: {
type: PropTypes.Boolean,
value: false,
},
reverse: {
type: PropTypes.Boolean,
value: false,
},
reverseColor: {
type: PropTypes.String,
value: null,
},
size: {
type: PropTypes.Number,
value: 40,
},
solid: {
type: PropTypes.Boolean,
value: false,
},
type: {
type: PropTypes.String,
value: "material",
},
underlayColor: {
type: PropTypes.String,
value: null,
},
},
scope: {
Icon,
},
imports: {
"react-native-elements": {
named: ["Icon"],
},
},
});
return (
<React.Fragment>
<Playground params={params} />
</React.Fragment>
);
};
export default IconPlayground;