react-native-ico-social-icons-rounded 4.1.3 → 4.1.5

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/typings.d.ts +29 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-ico-social-icons-rounded",
3
- "version": "4.1.3",
3
+ "version": "4.1.5",
4
4
  "description": "Social Icons Rounded Icons for React Native",
5
5
  "main": "src/index.jsx",
6
6
  "types": "typings.d.ts",
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,15 +207,39 @@ declare module 'react-native-ico-social-icons-rounded' {
206
207
  'yupoo-logo' |
207
208
  'zorpia-logo';
208
209
 
210
+ type backgroundType = 'circle' | 'rect' | 'button';
211
+
212
+ type positionType = 'top' | 'bottom' | 'right' | 'left' |
213
+ 'top_right' | 'top_left' | 'bottom_right' | 'bottom_left';
214
+
215
+ type backgroundTypeObj = {
216
+ type?: backgroundType;
217
+ color?: string;
218
+ radius?: number;
219
+ borderRadius?: number;
220
+ };
221
+
222
+ type badgeTypeObj = {
223
+ value?: number | string;
224
+ fontSize?: string;
225
+ position?: positionType;
226
+ color?: string;
227
+ backgroundColor?: string;
228
+ radius?: number;
229
+ };
230
+
209
231
  interface IconProps {
210
232
  name: iconNames;
211
- color: string;
212
- size: number;
233
+ width?: number;
234
+ height?: number;
235
+ color?: string;
236
+ stroke?: number;
237
+ background?: backgroundType | backgroundTypeObj;
238
+ badge?: number | string | badgeTypeObj;
213
239
  }
214
240
 
215
- const Icon: (props: IconProps) => ReactNode;
241
+ const Icon: (props: IconProps & SvgProps & AdditionalProps) => ReactNode;
216
242
 
217
243
  export { iconNames };
218
244
  export default Icon;
219
245
  }
220
-