react-native-ico-software-development 5.1.2 → 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 +14 -12
- package/package.json +8 -3
- package/src/data.js +806 -806
- package/static/c.png +0 -0
- package/static/go-lang.png +0 -0
- package/static/scala.png +0 -0
- package/typings.d.ts +33 -27
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
32 Vector Icons for React Native
|
|
6
6
|
|
|
7
|
-
<img src="./static/
|
|
7
|
+
<img src="./static/scala.png" alt="scala" width="150" height="150"> <img src="./static/go-lang.png" alt="go-lang" width="150" height="150"> <img src="./static/c.png" alt="c" width="150" height="150">
|
|
8
8
|
|
|
9
9
|
## List of icons
|
|
10
10
|
|
|
@@ -20,14 +20,14 @@ import Icon from 'react-native-ico-software-development';
|
|
|
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="
|
|
30
|
-
<Icon name="
|
|
23
|
+
<Icon name="scala" />
|
|
24
|
+
<Icon name="go-lang" height="40" width="40" />
|
|
25
|
+
<Icon name="c" color="red" />
|
|
26
|
+
<Icon name="c" colors={{ "#000000": "#FFFFFF" }} />
|
|
27
|
+
<Icon name="go-lang" badge="10" />
|
|
28
|
+
<Icon name="go-lang" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
|
|
29
|
+
<Icon name="scala" background="circle" />
|
|
30
|
+
<Icon name="scala" background={{ type: "button", color: 'green' }} />
|
|
31
31
|
</>
|
|
32
32
|
);
|
|
33
33
|
}
|
|
@@ -54,7 +54,9 @@ npm install --save react-native-ico-software-development react-native-svg
|
|
|
54
54
|
react-native link react-native-svg
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
|
|
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)
|
|
58
60
|
|
|
59
61
|
```
|
|
60
62
|
cd ios && pod install && cd ..
|
|
@@ -68,9 +70,9 @@ Returns a SvgXml icon by name and group.
|
|
|
68
70
|
|
|
69
71
|
name | optional | default value | description | examples
|
|
70
72
|
------|----------|---------------|-------------|---------
|
|
71
|
-
name | no | | name of icon | "
|
|
73
|
+
name | no | | name of icon | "scala"
|
|
72
74
|
color | yes | | line color, css style | "#00ff00", "#0f0", "green"
|
|
73
|
-
colors | yes | | replace colors | {"#FFFFFF": "#000000"} // white to black
|
|
75
|
+
colors | yes | | replace colors | {"#FFFFFF": "#000000", "#f00": "#00f"} // white to black, red to blue
|
|
74
76
|
width | yes | 20 | width of the icon | 40
|
|
75
77
|
height | yes | 20 | height of the icon | 40
|
|
76
78
|
background | yes | | background type | "circle"
|
package/package.json
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-ico-software-development",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Software Development Icons for React Native",
|
|
5
5
|
"main": "src/index.jsx",
|
|
6
6
|
"types": "typings.d.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"react-svg-main": "^4.
|
|
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-software-development.git"
|
|
17
|
+
"url": "git+https://github.com/ivanoff/react-native-ico-software-development.git"
|
|
13
18
|
},
|
|
14
19
|
"keywords": [
|
|
15
20
|
"React",
|