react-native-ico-modern-ui 4.1.5 → 5.1.2
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/README.md +7 -5
- package/package.json +2 -2
- package/typings.d.ts +8 -0
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ render() {
|
|
|
23
23
|
<Icon name="3d" />
|
|
24
24
|
<Icon name="acorn" height="40" width="40" />
|
|
25
25
|
<Icon name="add-multiple" color="red" />
|
|
26
|
+
<Icon name="add-multiple" colors={{ "#000000": "#FFFFFF" }} />
|
|
26
27
|
<Icon name="acorn" badge="10" />
|
|
27
28
|
<Icon name="acorn" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
|
|
28
29
|
<Icon name="3d" background="circle" />
|
|
@@ -69,13 +70,14 @@ Returns a SvgXml icon by name and group.
|
|
|
69
70
|
------|----------|---------------|-------------|---------
|
|
70
71
|
name | no | | name of icon | "3d"
|
|
71
72
|
color | yes | | line color, css style | "#00ff00", "#0f0", "green"
|
|
73
|
+
colors | yes | | replace colors | {"#FFFFFF": "#000000"} // white to black
|
|
72
74
|
width | yes | 20 | width of the icon | 40
|
|
73
75
|
height | yes | 20 | height of the icon | 40
|
|
74
|
-
background |
|
|
75
|
-
background |
|
|
76
|
-
badge |
|
|
77
|
-
badge |
|
|
78
|
-
...rest |
|
|
76
|
+
background | yes | | background type | "circle"
|
|
77
|
+
background | yes | | background object | {type: "circle", color: 'yellow'}
|
|
78
|
+
badge | yes | | badge string | "10"
|
|
79
|
+
badge | yes | | badge object | {value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}
|
|
80
|
+
...rest | yes | | other props | style={{backgroundColor: "#00f"}}
|
|
79
81
|
|
|
80
82
|
## Icons Made by
|
|
81
83
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ico-modern-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Modern Ui Icons for React Native",
|
|
5
5
|
"main": "src/index.jsx",
|
|
6
6
|
"types": "typings.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"react-svg-main": "^
|
|
8
|
+
"react-svg-main": "^4.0.1"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
package/typings.d.ts
CHANGED
|
@@ -1263,8 +1263,14 @@ declare module 'react-native-ico-modern-ui' {
|
|
|
1263
1263
|
'youtube' |
|
|
1264
1264
|
'zune';
|
|
1265
1265
|
|
|
1266
|
+
type iconColors = '#000000' |
|
|
1267
|
+
'#231F20' |
|
|
1268
|
+
'#FFFFFF';
|
|
1269
|
+
|
|
1266
1270
|
type backgroundType = 'circle' | 'rect' | 'button';
|
|
1267
1271
|
|
|
1272
|
+
type colorsType = Record<iconColors, string>;
|
|
1273
|
+
|
|
1268
1274
|
type positionType = 'top' | 'bottom' | 'right' | 'left' |
|
|
1269
1275
|
'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
|
|
1270
1276
|
|
|
@@ -1280,6 +1286,7 @@ declare module 'react-native-ico-modern-ui' {
|
|
|
1280
1286
|
fontSize?: string;
|
|
1281
1287
|
position?: positionType;
|
|
1282
1288
|
color?: string;
|
|
1289
|
+
colors: colorsType;
|
|
1283
1290
|
backgroundColor?: string;
|
|
1284
1291
|
radius?: number;
|
|
1285
1292
|
};
|
|
@@ -1289,6 +1296,7 @@ declare module 'react-native-ico-modern-ui' {
|
|
|
1289
1296
|
width?: number;
|
|
1290
1297
|
height?: number;
|
|
1291
1298
|
color?: string;
|
|
1299
|
+
colors: colorsType;
|
|
1292
1300
|
stroke?: number;
|
|
1293
1301
|
background?: backgroundType | backgroundTypeObj;
|
|
1294
1302
|
badge?: number | string | badgeTypeObj;
|