Permalink
Browse files

Fix default rendering of avatars (#479)

* Default renderAvatar to undefined so that it renders by default

Fixes bug introduced in #447

* Ignore .idea for IntelliJ
  • Loading branch information...
cooperka committed Jul 8, 2017
1 parent 75b7467 commit af2819ecc5c9429047e2c044a50b79ebb1008c61
Showing with 4 additions and 2 deletions.
  1. +2 −0 .gitignore
  2. +1 −1 src/GiftedChat.js
  3. +1 −1 src/Message.js
View
@@ -2,3 +2,5 @@
node_modules/
npm-debug.log
TODO.md
.idea
View
@@ -493,7 +493,7 @@ GiftedChat.defaultProps = {
}),
renderAccessory: null,
renderActions: null,
renderAvatar: null,
renderAvatar: undefined,
renderBubble: null,
renderFooter: null,
renderChatFooter: null,
View
@@ -86,7 +86,7 @@ const styles = {
};
Message.defaultProps = {
renderAvatar: null,
renderAvatar: undefined,
renderBubble: null,
renderDay: null,
position: 'left',

0 comments on commit af2819e

Please sign in to comment.