react-native-ico-modern-ui 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
|
@@ -1262,10 +1262,35 @@ declare module 'react-native-ico-modern-ui' {
|
|
|
1262
1262
|
'youtube' |
|
|
1263
1263
|
'zune';
|
|
1264
1264
|
|
|
1265
|
+
type backgroundType = 'circle' | 'rect' | 'button';
|
|
1266
|
+
|
|
1267
|
+
type positionType = 'top' | 'bottom' | 'right' | 'left' |
|
|
1268
|
+
'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
|
|
1269
|
+
|
|
1270
|
+
type backgroundTypeObj = {
|
|
1271
|
+
type?: backgroundType;
|
|
1272
|
+
color?: string;
|
|
1273
|
+
radius?: number;
|
|
1274
|
+
borderRadius?: number;
|
|
1275
|
+
};
|
|
1276
|
+
|
|
1277
|
+
type badgeTypeObj = {
|
|
1278
|
+
value?: number | string;
|
|
1279
|
+
fontSize?: string;
|
|
1280
|
+
position?: positionType;
|
|
1281
|
+
color?: string;
|
|
1282
|
+
backgroundColor?: string;
|
|
1283
|
+
radius?: number;
|
|
1284
|
+
};
|
|
1285
|
+
|
|
1265
1286
|
interface IconProps {
|
|
1266
1287
|
name: iconNames;
|
|
1267
|
-
|
|
1268
|
-
|
|
1288
|
+
width?: number;
|
|
1289
|
+
height?: number;
|
|
1290
|
+
color?: string;
|
|
1291
|
+
stroke?: number;
|
|
1292
|
+
background?: backgroundType | backgroundTypeObj;
|
|
1293
|
+
badge?: number | string | badgeTypeObj;
|
|
1269
1294
|
}
|
|
1270
1295
|
|
|
1271
1296
|
const Icon: (props: IconProps) => ReactNode;
|