react-native-ico-stylish 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-stylish",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Stylish 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-stylish' {
2
2
  import { ReactNode } from 'react';
3
+ import { SvgProps, AdditionalProps } from 'react-native-svg';
3
4
 
4
5
  type iconNames = 'bikini-one-piece-swimwear' |
5
6
  'bikini-shape-1' |
@@ -202,15 +203,39 @@ declare module 'react-native-ico-stylish' {
202
203
  'zip' |
203
204
  'zipper-tool';
204
205
 
206
+ type backgroundType = 'circle' | 'rect' | 'button';
207
+
208
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
209
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
210
+
211
+ type backgroundTypeObj = {
212
+ type?: backgroundType;
213
+ color?: string;
214
+ radius?: number;
215
+ borderRadius?: number;
216
+ };
217
+
218
+ type badgeTypeObj = {
219
+ value?: number | string;
220
+ fontSize?: string;
221
+ position?: positionType;
222
+ color?: string;
223
+ backgroundColor?: string;
224
+ radius?: number;
225
+ };
226
+
205
227
  interface IconProps {
206
228
  name: iconNames;
207
- color: string;
208
- size: number;
229
+ width?: number;
230
+ height?: number;
231
+ color?: string;
232
+ stroke?: number;
233
+ background?: backgroundType | backgroundTypeObj;
234
+ badge?: number | string | badgeTypeObj;
209
235
  }
210
236
 
211
- const Icon: (props: IconProps) => ReactNode;
237
+ const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
212
238
 
213
239
  export { iconNames };
214
240
  export default Icon;
215
241
  }
216
-