react-native-ico-basic 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/typings.d.ts +27 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ico-basic",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "Basic Icons for React Native",
5
5
  "main": "src/index.jsx",
6
6
  "types": "typings.d.ts",
package/typings.d.ts CHANGED
@@ -239,10 +239,35 @@ declare module 'react-native-ico-basic' {
239
239
  'zoom-in' |
240
240
  'zoom-out';
241
241
 
242
+ type backgroundType = 'circle' | 'rect' | 'button';
243
+
244
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
245
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
246
+
247
+ type backgroundTypeObj = {
248
+ type?: backgroundType;
249
+ color?: string;
250
+ radius?: number;
251
+ borderRadius?: number;
252
+ };
253
+
254
+ type badgeTypeObj = {
255
+ value?: number | string;
256
+ fontSize?: string;
257
+ position?: positionType;
258
+ color?: string;
259
+ backgroundColor?: string;
260
+ radius?: number;
261
+ };
262
+
242
263
  interface IconProps {
243
264
  name: iconNames;
244
- color: string;
245
- size: number;
265
+ width?: number;
266
+ height?: number;
267
+ color?: string;
268
+ stroke?: number;
269
+ background?: backgroundType | backgroundTypeObj;
270
+ badge?: number | string | badgeTypeObj;
246
271
  }
247
272
 
248
273
  const Icon: (props: IconProps) => ReactNode;
@@ -250,4 +275,3 @@ declare module 'react-native-ico-basic' {
250
275
  export { iconNames };
251
276
  export default Icon;
252
277
  }
253
-