react-native-ico-stylish 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
|
@@ -202,10 +202,35 @@ declare module 'react-native-ico-stylish' {
|
|
|
202
202
|
'zip' |
|
|
203
203
|
'zipper-tool';
|
|
204
204
|
|
|
205
|
+
type backgroundType = 'circle' | 'rect' | 'button';
|
|
206
|
+
|
|
207
|
+
type positionType = 'top' | 'bottom' | 'right' | 'left' |
|
|
208
|
+
'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
|
|
209
|
+
|
|
210
|
+
type backgroundTypeObj = {
|
|
211
|
+
type?: backgroundType;
|
|
212
|
+
color?: string;
|
|
213
|
+
radius?: number;
|
|
214
|
+
borderRadius?: number;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
type badgeTypeObj = {
|
|
218
|
+
value?: number | string;
|
|
219
|
+
fontSize?: string;
|
|
220
|
+
position?: positionType;
|
|
221
|
+
color?: string;
|
|
222
|
+
backgroundColor?: string;
|
|
223
|
+
radius?: number;
|
|
224
|
+
};
|
|
225
|
+
|
|
205
226
|
interface IconProps {
|
|
206
227
|
name: iconNames;
|
|
207
|
-
|
|
208
|
-
|
|
228
|
+
width?: number;
|
|
229
|
+
height?: number;
|
|
230
|
+
color?: string;
|
|
231
|
+
stroke?: number;
|
|
232
|
+
background?: backgroundType | backgroundTypeObj;
|
|
233
|
+
badge?: number | string | badgeTypeObj;
|
|
209
234
|
}
|
|
210
235
|
|
|
211
236
|
const Icon: (props: IconProps) => ReactNode;
|
|
@@ -213,4 +238,3 @@ declare module 'react-native-ico-stylish' {
|
|
|
213
238
|
export { iconNames };
|
|
214
239
|
export default Icon;
|
|
215
240
|
}
|
|
216
|
-
|