1 | import PropTypes from 'prop-types';
|
2 | import React from 'react';
|
3 | import { StyleProp, ImageStyle, TextStyle } from 'react-native';
|
4 | import { User } from './Models';
|
5 | export interface GiftedAvatarProps {
|
6 | user?: User;
|
7 | avatarStyle?: StyleProp<ImageStyle>;
|
8 | textStyle?: StyleProp<TextStyle>;
|
9 | onPress?: (props: GiftedAvatarProps) => void;
|
10 | onLongPress?: (props: GiftedAvatarProps) => void;
|
11 | }
|
12 | export declare function GiftedAvatar(props: GiftedAvatarProps): React.JSX.Element;
|
13 | export 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 | }
|