mirror of
https://github.com/zhigang1992/react-native-gifted-chat.git
synced 2026-01-12 17:42:27 +08:00
Merge branch 'master' of github.com:FaridSafi/react-native-gifted-chat
This commit is contained in:
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"
|
||||
@@ -44,7 +45,7 @@
|
||||
"eslint-plugin-react-native": "3.2.1",
|
||||
"husky": "0.15.0-rc.2",
|
||||
"jest": "22.1.4",
|
||||
"react-test-renderer": "16.2.0",
|
||||
"react-test-renderer": "16.3.0",
|
||||
"react": "16.2.0",
|
||||
"react-native": "0.51.0",
|
||||
"prop-types": "15.6.1"
|
||||
|
||||
Reference in New Issue
Block a user