UNPKG

react-native-solar-icons

Version:
11 lines (10 loc) 436 B
import React from 'react'; import { IconTypes, IconType, IconNameByType } from './icons'; export interface SolarIconProps<T extends IconType = typeof IconTypes.Bold> { type?: T; name: IconNameByType[T]; color?: string; secondaryColor?: string; size?: number; } export declare const SolarIcon: <T extends IconType>({ type, name, size, color, secondaryColor, ...rest }: SolarIconProps<T>) => React.JSX.Element | null;