-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathindex.tsx
More file actions
33 lines (29 loc) · 707 Bytes
/
index.tsx
File metadata and controls
33 lines (29 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import React, { createContext } from 'react';
import type { StyleProp, TextStyle, ViewStyle } from 'react-native';
export type IconWeight =
| 'thin'
| 'light'
| 'regular'
| 'bold'
| 'fill'
| 'duotone';
export interface IconProps {
color?: string;
duotoneColor?: string;
duotoneOpacity?: number;
mirrored?: boolean;
size?: string | number;
style?: StyleProp<ViewStyle | TextStyle>;
testID?: string;
title?: string; // SVGRProps
titleId?: string; // SVGRProps
weight?: IconWeight;
}
export type Icon = React.FC<IconProps>;
export const IconContext = createContext<IconProps>({
color: '#000',
size: 24,
weight: 'regular',
mirrored: false,
duotoneOpacity: 0.2,
});