react-native-ico-modern-ui 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 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ico-modern-ui",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Modern Ui 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-modern-ui' {
2
2
  import { ReactNode } from 'react';
3
+ import { SvgProps, AdditionalProps } from 'react-native-svg';
3
4
 
4
5
  type iconNames = '3d-2' |
5
6
  '3d-obj' |
@@ -1262,13 +1263,38 @@ declare module 'react-native-ico-modern-ui' {
1262
1263
  'youtube' |
1263
1264
  'zune';
1264
1265
 
1266
+ type backgroundType = 'circle' | 'rect' | 'button';
1267
+
1268
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
1269
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
1270
+
1271
+ type backgroundTypeObj = {
1272
+ type?: backgroundType;
1273
+ color?: string;
1274
+ radius?: number;
1275
+ borderRadius?: number;
1276
+ };
1277
+
1278
+ type badgeTypeObj = {
1279
+ value?: number | string;
1280
+ fontSize?: string;
1281
+ position?: positionType;
1282
+ color?: string;
1283
+ backgroundColor?: string;
1284
+ radius?: number;
1285
+ };
1286
+
1265
1287
  interface IconProps {
1266
1288
  name: iconNames;
1267
- color: string;
1268
- size: number;
1289
+ width?: number;
1290
+ height?: number;
1291
+ color?: string;
1292
+ stroke?: number;
1293
+ background?: backgroundType | backgroundTypeObj;
1294
+ badge?: number | string | badgeTypeObj;
1269
1295
  }
1270
1296
 
1271
- const Icon: (props: IconProps) => ReactNode;
1297
+ const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
1272
1298
 
1273
1299
  export { iconNames };
1274
1300
  export default Icon;