mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-04-28 20:25:43 +08:00
committed by
Xavier Carpentier
parent
ecc5ca98e1
commit
beabebdcee
2
index.d.ts
vendored
2
index.d.ts
vendored
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user