react-native-ico-basic 4.1.3 → 4.1.5

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 +29 -4
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.5",
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
@@ -1,5 +1,6 @@
1
1
  declare module 'react-native-ico-basic' {
2
2
  import { ReactNode } from 'react';
3
+ import { SvgProps, AdditionalProps } from 'react-native-svg';
3
4
 
4
5
  type iconNames = 'achievement' |
5
6
  'flag' |
@@ -239,15 +240,39 @@ declare module 'react-native-ico-basic' {
239
240
  'zoom-in' |
240
241
  'zoom-out';
241
242
 
243
+ type backgroundType = 'circle' | 'rect' | 'button';
244
+
245
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
246
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
247
+
248
+ type backgroundTypeObj = {
249
+ type?: backgroundType;
250
+ color?: string;
251
+ radius?: number;
252
+ borderRadius?: number;
253
+ };
254
+
255
+ type badgeTypeObj = {
256
+ value?: number | string;
257
+ fontSize?: string;
258
+ position?: positionType;
259
+ color?: string;
260
+ backgroundColor?: string;
261
+ radius?: number;
262
+ };
263
+
242
264
  interface IconProps {
243
265
  name: iconNames;
244
- color: string;
245
- size: number;
266
+ width?: number;
267
+ height?: number;
268
+ color?: string;
269
+ stroke?: number;
270
+ background?: backgroundType | backgroundTypeObj;
271
+ badge?: number | string | badgeTypeObj;
246
272
  }
247
273
 
248
- const Icon: (props: IconProps) => ReactNode;
274
+ const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
249
275
 
250
276
  export { iconNames };
251
277
  export default Icon;
252
278
  }
253
-