Added type for showAvatarForEveryMessage in index.d.ts. #731 (#811)

This commit is contained in:
Omkar Joshi
2018-03-30 15:23:03 +05:30
committed by Xavier Carpentier
parent ecc5ca98e1
commit beabebdcee
2 changed files with 3 additions and 0 deletions

2
index.d.ts vendored
View File

@@ -168,6 +168,8 @@ export interface GiftedChatProps {
renderAvatar?(props: AvatarProps): React.ReactNode;
/* Whether to render an avatar for the current user; default is false, only show avatars for other users */
showUserAvatar?: boolean;
/* When false, avatars will only be displayed when a consecutive message is from the same user on the same day; default is false */
showAvatarForEveryMessage?: boolean;
/* Callback when a message avatar is tapped */
onPressAvatar?(user: User): void;
/* Render the message avatar at the top of consecutive messages, rather than the bottom; default is false */

View File

@@ -3,6 +3,7 @@
"version": "0.4.3",
"description": "The most complete chat UI for React Native",
"main": "index.js",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/FaridSafi/react-native-gifted-chat.git"