react-native-ico-rpg-game 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-rpg-game",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Rpg Game 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-rpg-game' {
2
2
  import { ReactNode } from 'react';
3
+ import { SvgProps, AdditionalProps } from 'react-native-svg';
3
4
 
4
5
  type iconNames = 'acid' |
5
6
  'acorn' |
@@ -497,13 +498,38 @@ declare module 'react-native-ico-rpg-game' {
497
498
  'zebra-shield' |
498
499
  'zigzag-leaf';
499
500
 
501
+ type backgroundType = 'circle' | 'rect' | 'button';
502
+
503
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
504
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
505
+
506
+ type backgroundTypeObj = {
507
+ type?: backgroundType;
508
+ color?: string;
509
+ radius?: number;
510
+ borderRadius?: number;
511
+ };
512
+
513
+ type badgeTypeObj = {
514
+ value?: number | string;
515
+ fontSize?: string;
516
+ position?: positionType;
517
+ color?: string;
518
+ backgroundColor?: string;
519
+ radius?: number;
520
+ };
521
+
500
522
  interface IconProps {
501
523
  name: iconNames;
502
- color: string;
503
- size: number;
524
+ width?: number;
525
+ height?: number;
526
+ color?: string;
527
+ stroke?: number;
528
+ background?: backgroundType | backgroundTypeObj;
529
+ badge?: number | string | badgeTypeObj;
504
530
  }
505
531
 
506
- const Icon: (props: IconProps) => ReactNode;
532
+ const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
507
533
 
508
534
  export { iconNames };
509
535
  export default Icon;