react-native-solar-icons
Version:
Solar System icons for React Native and Expo
11 lines (10 loc) • 436 B
TypeScript
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;