UNPKG

@cometchat/chat-uikit-react-native

Version:

Ready-to-use Chat UI Components for React Native

17 lines (16 loc) 586 B
import { JSX } from "react"; import { ColorValue, DimensionValue, ImageSourcePropType, ImageStyle, StyleProp, ViewStyle } from "react-native"; import { ICONS } from "./icon-mapping"; export type IconName = keyof typeof ICONS; type IconProps = { name?: IconName; color?: ColorValue; size?: DimensionValue; height?: DimensionValue; width?: DimensionValue; containerStyle?: StyleProp<ViewStyle>; imageStyle?: StyleProp<ImageStyle>; icon?: ImageSourcePropType | JSX.Element; }; export declare const Icon: (props: IconProps) => JSX.Element | null; export {};