@qte/react-native-gifted-chat
Version:
Performant fork of react-native-gifted-chat with FlashList support
12 lines (11 loc) • 446 B
TypeScript
import React from 'react';
import { StyleProp, ImageStyle, TextStyle } from 'react-native';
import { User } from './types';
export interface GiftedAvatarProps {
user?: User;
avatarStyle?: StyleProp<ImageStyle>;
textStyle?: StyleProp<TextStyle>;
onPress?: (props: GiftedAvatarProps) => void;
onLongPress?: (props: GiftedAvatarProps) => void;
}
export declare function GiftedAvatar(props: GiftedAvatarProps): React.JSX.Element;