react-native-ico-new-year 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 CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  50 Vector Icons for React Native
6
6
 
7
- <img src="./static/santa-claus.png" alt="santa-claus" width="150" height="150"> <img src="./static/candelabra.png" alt="candelabra" width="150" height="150"> <img src="./static/star.png" alt="star" width="150" height="150">
7
+ <img src="./static/cocktail.png" alt="cocktail" width="150" height="150"> <img src="./static/snow-globe.png" alt="snow-globe" width="150" height="150"> <img src="./static/deer.png" alt="deer" width="150" height="150">
8
8
 
9
9
  ## List of icons
10
10
 
@@ -20,14 +20,14 @@ import Icon from 'react-native-ico-new-year';
20
20
  render() {
21
21
  return (
22
22
  <>
23
- <Icon name="santa-claus" />
24
- <Icon name="candelabra" height="40" width="40" />
25
- <Icon name="star" color="red" />
26
- <Icon name="star" colors={{ "#000000": "#FFFFFF" }} />
27
- <Icon name="candelabra" badge="10" />
28
- <Icon name="candelabra" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
29
- <Icon name="santa-claus" background="circle" />
30
- <Icon name="santa-claus" background={{ type: "button", color: 'green' }} />
23
+ <Icon name="cocktail" />
24
+ <Icon name="snow-globe" height="40" width="40" />
25
+ <Icon name="deer" color="red" />
26
+ <Icon name="deer" colors={{ "#000000": "#FFFFFF" }} />
27
+ <Icon name="snow-globe" badge="10" />
28
+ <Icon name="snow-globe" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
29
+ <Icon name="cocktail" background="circle" />
30
+ <Icon name="cocktail" background={{ type: "button", color: 'green' }} />
31
31
  </>
32
32
  );
33
33
  }
@@ -54,7 +54,9 @@ npm install --save react-native-ico-new-year react-native-svg
54
54
  react-native link react-native-svg
55
55
  ```
56
56
 
57
- ### 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)
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 | "santa-claus"
73
+ name | no | | name of icon | "cocktail"
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-new-year",
3
- "version": "5.1.2",
3
+ "version": "7.0.1",
4
4
  "description": "New Year Icons for React Native",
5
5
  "main": "src/index.jsx",
6
6
  "types": "typings.d.ts",
7
7
  "dependencies": {
8
- "react-svg-main": "^4.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-new-year.git"
17
+ "url": "git+https://github.com/ivanoff/react-native-ico-new-year.git"
13
18
  },
14
19
  "keywords": [
15
20
  "React",