Merge branch 'master' of github.com:FaridSafi/react-native-gifted-chat

This commit is contained in:
Bruno Cascio
2018-04-06 10:43:16 -03:00
2 changed files with 4 additions and 1 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"
@@ -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"