react-native-ico-rpg-game 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.
- package/package.json +1 -1
- package/typings.d.ts +27 -2
package/package.json
CHANGED
package/typings.d.ts
CHANGED
|
@@ -497,10 +497,35 @@ declare module 'react-native-ico-rpg-game' {
|
|
|
497
497
|
'zebra-shield' |
|
|
498
498
|
'zigzag-leaf';
|
|
499
499
|
|
|
500
|
+
type backgroundType = 'circle' | 'rect' | 'button';
|
|
501
|
+
|
|
502
|
+
type positionType = 'top' | 'bottom' | 'right' | 'left' |
|
|
503
|
+
'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
|
|
504
|
+
|
|
505
|
+
type backgroundTypeObj = {
|
|
506
|
+
type?: backgroundType;
|
|
507
|
+
color?: string;
|
|
508
|
+
radius?: number;
|
|
509
|
+
borderRadius?: number;
|
|
510
|
+
};
|
|
511
|
+
|
|
512
|
+
type badgeTypeObj = {
|
|
513
|
+
value?: number | string;
|
|
514
|
+
fontSize?: string;
|
|
515
|
+
position?: positionType;
|
|
516
|
+
color?: string;
|
|
517
|
+
backgroundColor?: string;
|
|
518
|
+
radius?: number;
|
|
519
|
+
};
|
|
520
|
+
|
|
500
521
|
interface IconProps {
|
|
501
522
|
name: iconNames;
|
|
502
|
-
|
|
503
|
-
|
|
523
|
+
width?: number;
|
|
524
|
+
height?: number;
|
|
525
|
+
color?: string;
|
|
526
|
+
stroke?: number;
|
|
527
|
+
background?: backgroundType | backgroundTypeObj;
|
|
528
|
+
badge?: number | string | badgeTypeObj;
|
|
504
529
|
}
|
|
505
530
|
|
|
506
531
|
const Icon: (props: IconProps) => ReactNode;
|