react-native-ico-rpg-game 4.1.5 → 7.0.1
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 +19 -15
- package/package.json +8 -3
- package/src/data.js +1481 -1481
- package/static/emerald.png +0 -0
- package/static/mine-wagon.png +0 -0
- package/static/sapphire.png +0 -0
- package/typings.d.ts +474 -462
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
495 Vector Icons for React Native
|
|
6
6
|
|
|
7
|
-
<img src="./static/
|
|
7
|
+
<img src="./static/sapphire.png" alt="sapphire" width="150" height="150"> <img src="./static/mine-wagon.png" alt="mine-wagon" width="150" height="150"> <img src="./static/emerald.png" alt="emerald" width="150" height="150">
|
|
8
8
|
|
|
9
9
|
## List of icons
|
|
10
10
|
|
|
@@ -20,13 +20,14 @@ import Icon from 'react-native-ico-rpg-game';
|
|
|
20
20
|
render() {
|
|
21
21
|
return (
|
|
22
22
|
<>
|
|
23
|
-
<Icon name="
|
|
24
|
-
<Icon name="
|
|
25
|
-
<Icon name="
|
|
26
|
-
<Icon name="
|
|
27
|
-
<Icon name="
|
|
28
|
-
<Icon name="
|
|
29
|
-
<Icon name="
|
|
23
|
+
<Icon name="sapphire" />
|
|
24
|
+
<Icon name="mine-wagon" height="40" width="40" />
|
|
25
|
+
<Icon name="emerald" color="red" />
|
|
26
|
+
<Icon name="emerald" colors={{ "#000000": "#FFFFFF" }} />
|
|
27
|
+
<Icon name="mine-wagon" badge="10" />
|
|
28
|
+
<Icon name="mine-wagon" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
|
|
29
|
+
<Icon name="sapphire" background="circle" />
|
|
30
|
+
<Icon name="sapphire" background={{ type: "button", color: 'green' }} />
|
|
30
31
|
</>
|
|
31
32
|
);
|
|
32
33
|
}
|
|
@@ -53,7 +54,9 @@ npm install --save react-native-ico-rpg-game react-native-svg
|
|
|
53
54
|
react-native link react-native-svg
|
|
54
55
|
```
|
|
55
56
|
|
|
56
|
-
|
|
57
|
+
`react-native-svg` is a peer dependency. Install a current version in the app so the package uses the app-level native module instead of pulling in an older nested copy.
|
|
58
|
+
|
|
59
|
+
### pod install (for iOS)
|
|
57
60
|
|
|
58
61
|
```
|
|
59
62
|
cd ios && pod install && cd ..
|
|
@@ -67,15 +70,16 @@ Returns a SvgXml icon by name and group.
|
|
|
67
70
|
|
|
68
71
|
name | optional | default value | description | examples
|
|
69
72
|
------|----------|---------------|-------------|---------
|
|
70
|
-
name | no | | name of icon | "
|
|
73
|
+
name | no | | name of icon | "sapphire"
|
|
71
74
|
color | yes | | line color, css style | "#00ff00", "#0f0", "green"
|
|
75
|
+
colors | yes | | replace colors | {"#FFFFFF": "#000000", "#f00": "#00f"} // white to black, red to blue
|
|
72
76
|
width | yes | 20 | width of the icon | 40
|
|
73
77
|
height | yes | 20 | height of the icon | 40
|
|
74
|
-
background |
|
|
75
|
-
background |
|
|
76
|
-
badge |
|
|
77
|
-
badge |
|
|
78
|
-
...rest |
|
|
78
|
+
background | yes | | background type | "circle"
|
|
79
|
+
background | yes | | background object | {type: "circle", color: 'yellow'}
|
|
80
|
+
badge | yes | | badge string | "10"
|
|
81
|
+
badge | yes | | badge object | {value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}
|
|
82
|
+
...rest | yes | | other props | style={{backgroundColor: "#00f"}}
|
|
79
83
|
|
|
80
84
|
## Icons Made by
|
|
81
85
|
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ico-rpg-game",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Rpg Game 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.1.1"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"react": ">=18",
|
|
12
|
+
"react-native": ">=0.72",
|
|
13
|
+
"react-native-svg": ">=15"
|
|
9
14
|
},
|
|
10
15
|
"repository": {
|
|
11
16
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/ivanoff/react-native-ico-rpg-game.git"
|
|
17
|
+
"url": "git+https://github.com/ivanoff/react-native-ico-rpg-game.git"
|
|
13
18
|
},
|
|
14
19
|
"keywords": [
|
|
15
20
|
"React",
|