react-native-ico-modern-ui 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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  1260 Vector Icons for React Native
6
6
 
7
- <img src="./static/3d.png" alt="3d" width="150" height="150"> <img src="./static/acorn.png" alt="acorn" width="150" height="150"> <img src="./static/add-multiple.png" alt="add-multiple" width="150" height="150">
7
+ <img src="./static/social-microsoft.png" alt="social-microsoft" width="150" height="150"> <img src="./static/adobe-encore.png" alt="adobe-encore" width="150" height="150"> <img src="./static/film.png" alt="film" width="150" height="150">
8
8
 
9
9
  ## List of icons
10
10
 
@@ -20,13 +20,14 @@ import Icon from 'react-native-ico-modern-ui';
20
20
  render() {
21
21
  return (
22
22
  <>
23
- <Icon name="3d" />
24
- <Icon name="acorn" height="40" width="40" />
25
- <Icon name="add-multiple" color="red" />
26
- <Icon name="acorn" badge="10" />
27
- <Icon name="acorn" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
28
- <Icon name="3d" background="circle" />
29
- <Icon name="3d" background={{ type: "button", color: 'green' }} />
23
+ <Icon name="social-microsoft" />
24
+ <Icon name="adobe-encore" height="40" width="40" />
25
+ <Icon name="film" color="red" />
26
+ <Icon name="film" colors={{ "#000000": "#FFFFFF" }} />
27
+ <Icon name="adobe-encore" badge="10" />
28
+ <Icon name="adobe-encore" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
29
+ <Icon name="social-microsoft" background="circle" />
30
+ <Icon name="social-microsoft" background={{ type: "button", color: 'green' }} />
30
31
  </>
31
32
  );
32
33
  }
@@ -53,7 +54,9 @@ npm install --save react-native-ico-modern-ui react-native-svg
53
54
  react-native link react-native-svg
54
55
  ```
55
56
 
56
- ### pod install ( for iOS )
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 | "3d"
73
+ name | no | | name of icon | "social-microsoft"
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 | no | | background type | "circle"
75
- background | no | | background object | {type: "circle", color: 'yellow'}
76
- badge | no | | badge string | "10"
77
- badge | no | | badge object | {value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}
78
- ...rest | no | | other props | style={{backgroundColor: "#00f"}}
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-modern-ui",
3
- "version": "4.1.5",
3
+ "version": "7.0.1",
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": "^3.0.1"
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-modern-ui.git"
17
+ "url": "git+https://github.com/ivanoff/react-native-ico-modern-ui.git"
13
18
  },
14
19
  "keywords": [
15
20
  "React",