import React, { createContext } from 'react'; import { StyleProp, ViewStyle } from 'react-native'; export type IconWeight = | 'thin' | 'light' | 'regular' | 'bold' | 'fill' | 'duotone'; export type PaintFunction = (color: string) => React.ReactNode | null; export interface IconProps { color?: string; size?: string | number; weight?: IconWeight; style?: StyleProp; mirrored?: boolean; } export type Icon = React.FC; export const IconContext = createContext({ color: '#000', size: 24, weight: 'regular', mirrored: false, });