react-native-ico-social-icons-rounded 4.1.4 → 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 -1
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ render() {
|
|
|
23
23
|
<Icon name="56-social-logo" />
|
|
24
24
|
<Icon name="ads-of-the-world-logo" height="40" width="40" />
|
|
25
25
|
<Icon name="ads-scuttlepad-logo" color="red" />
|
|
26
|
+
<Icon name="ads-scuttlepad-logo" colors={{ "#000000": "#FFFFFF" }} />
|
|
26
27
|
<Icon name="ads-of-the-world-logo" badge="10" />
|
|
27
28
|
<Icon name="ads-of-the-world-logo" badge={{value: 'A', fontSize: 25, radius: 22, position:'top_left', color:'orange', backgroundColor:'blue'}}/>
|
|
28
29
|
<Icon name="56-social-logo" background="circle" />
|
|
@@ -69,13 +70,14 @@ Returns a SvgXml icon by name and group.
|
|
|
69
70
|
------|----------|---------------|-------------|---------
|
|
70
71
|
name | no | | name of icon | "56-social-logo"
|
|
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-social-icons-rounded",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.1.2",
|
|
4
4
|
"description": "Social Icons Rounded 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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare module 'react-native-ico-social-icons-rounded' {
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { SvgProps, AdditionalProps } from 'react-native-svg';
|
|
3
4
|
|
|
4
5
|
type iconNames = '500px-logo-1' |
|
|
5
6
|
'500px-logo' |
|
|
@@ -206,8 +207,12 @@ declare module 'react-native-ico-social-icons-rounded' {
|
|
|
206
207
|
'yupoo-logo' |
|
|
207
208
|
'zorpia-logo';
|
|
208
209
|
|
|
210
|
+
type iconColors = ;
|
|
211
|
+
|
|
209
212
|
type backgroundType = 'circle' | 'rect' | 'button';
|
|
210
213
|
|
|
214
|
+
type colorsType = Record<iconColors, string>;
|
|
215
|
+
|
|
211
216
|
type positionType = 'top' | 'bottom' | 'right' | 'left' |
|
|
212
217
|
'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
|
|
213
218
|
|
|
@@ -223,6 +228,7 @@ declare module 'react-native-ico-social-icons-rounded' {
|
|
|
223
228
|
fontSize?: string;
|
|
224
229
|
position?: positionType;
|
|
225
230
|
color?: string;
|
|
231
|
+
colors: colorsType;
|
|
226
232
|
backgroundColor?: string;
|
|
227
233
|
radius?: number;
|
|
228
234
|
};
|
|
@@ -232,12 +238,13 @@ declare module 'react-native-ico-social-icons-rounded' {
|
|
|
232
238
|
width?: number;
|
|
233
239
|
height?: number;
|
|
234
240
|
color?: string;
|
|
241
|
+
colors: colorsType;
|
|
235
242
|
stroke?: number;
|
|
236
243
|
background?: backgroundType | backgroundTypeObj;
|
|
237
244
|
badge?: number | string | badgeTypeObj;
|
|
238
245
|
}
|
|
239
246
|
|
|
240
|
-
const Icon: (props: IconProps) => ReactNode;
|
|
247
|
+
const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
|
|
241
248
|
|
|
242
249
|
export { iconNames };
|
|
243
250
|
export default Icon;
|