react-native-ico-business 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/typings.d.ts +27 -3
package/package.json
CHANGED
package/typings.d.ts
CHANGED
|
@@ -115,10 +115,35 @@ declare module 'react-native-ico-business' {
|
|
|
115
115
|
'buildings' |
|
|
116
116
|
'email';
|
|
117
117
|
|
|
118
|
+
type backgroundType = 'circle' | 'rect' | 'button';
|
|
119
|
+
|
|
120
|
+
type positionType = 'top' | 'bottom' | 'right' | 'left' |
|
|
121
|
+
'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
|
|
122
|
+
|
|
123
|
+
type backgroundTypeObj = {
|
|
124
|
+
type?: backgroundType;
|
|
125
|
+
color?: string;
|
|
126
|
+
radius?: number;
|
|
127
|
+
borderRadius?: number;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
type badgeTypeObj = {
|
|
131
|
+
value?: number | string;
|
|
132
|
+
fontSize?: string;
|
|
133
|
+
position?: positionType;
|
|
134
|
+
color?: string;
|
|
135
|
+
backgroundColor?: string;
|
|
136
|
+
radius?: number;
|
|
137
|
+
};
|
|
138
|
+
|
|
118
139
|
interface IconProps {
|
|
119
140
|
name: iconNames;
|
|
120
|
-
|
|
121
|
-
|
|
141
|
+
width?: number;
|
|
142
|
+
height?: number;
|
|
143
|
+
color?: string;
|
|
144
|
+
stroke?: number;
|
|
145
|
+
background?: backgroundType | backgroundTypeObj;
|
|
146
|
+
badge?: number | string | badgeTypeObj;
|
|
122
147
|
}
|
|
123
148
|
|
|
124
149
|
const Icon: (props: IconProps) => ReactNode;
|
|
@@ -126,4 +151,3 @@ declare module 'react-native-ico-business' {
|
|
|
126
151
|
export { iconNames };
|
|
127
152
|
export default Icon;
|
|
128
153
|
}
|
|
129
|
-
|