UNPKG

936 BTypeScriptView Raw
1import PropTypes from 'prop-types';
2import React from 'react';
3import { StyleProp, ImageStyle, TextStyle } from 'react-native';
4import { User } from './Models';
5export interface GiftedAvatarProps {
6 user?: User;
7 avatarStyle?: StyleProp<ImageStyle>;
8 textStyle?: StyleProp<TextStyle>;
9 onPress?: (props: GiftedAvatarProps) => void;
10 onLongPress?: (props: GiftedAvatarProps) => void;
11}
12export declare function GiftedAvatar(props: GiftedAvatarProps): React.JSX.Element;
13export declare namespace GiftedAvatar {
14 var propTypes: {
15 user: PropTypes.Requireable<object>;
16 onPress: PropTypes.Requireable<(...args: any[]) => any>;
17 onLongPress: PropTypes.Requireable<(...args: any[]) => any>;
18 avatarStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
19 textStyle: PropTypes.Requireable<NonNullable<number | boolean | object | null | undefined>>;
20 };
21}