react-native-ico-software-development 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-software-development",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "Software Development Icons for React Native",
5
5
  "main": "src/index.jsx",
6
6
  "types": "typings.d.ts",
package/typings.d.ts CHANGED
@@ -34,10 +34,35 @@ declare module 'react-native-ico-software-development' {
34
34
  'css' |
35
35
  'nodejs';
36
36
 
37
+ type backgroundType = 'circle' | 'rect' | 'button';
38
+
39
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
40
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
41
+
42
+ type backgroundTypeObj = {
43
+ type?: backgroundType;
44
+ color?: string;
45
+ radius?: number;
46
+ borderRadius?: number;
47
+ };
48
+
49
+ type badgeTypeObj = {
50
+ value?: number | string;
51
+ fontSize?: string;
52
+ position?: positionType;
53
+ color?: string;
54
+ backgroundColor?: string;
55
+ radius?: number;
56
+ };
57
+
37
58
  interface IconProps {
38
59
  name: iconNames;
39
- color: string;
40
- size: number;
60
+ width?: number;
61
+ height?: number;
62
+ color?: string;
63
+ stroke?: number;
64
+ background?: backgroundType | backgroundTypeObj;
65
+ badge?: number | string | badgeTypeObj;
41
66
  }
42
67
 
43
68
  const Icon: (props: IconProps) => ReactNode;
@@ -45,4 +70,3 @@ declare module 'react-native-ico-software-development' {
45
70
  export { iconNames };
46
71
  export default Icon;
47
72
  }
48
-