Permalink
Browse files

update doc

  • Loading branch information...
FaridSafi committed Jul 30, 2016
1 parent e2e6fbd commit b7fd3aec80b12b30d6d5ef51e19e1ec12729c185
Showing with 24 additions and 2 deletions.
  1. +24 −2 README.md
  2. BIN screenshots/gifted-chat-1.png
  3. BIN screenshots/gifted-chat-2.png
View
@@ -96,8 +96,30 @@ See [example/App.js](example/App.js)
- Localized dates
- Copy text message to clipboard
## Props documentation
- Work in progress
## Props
- **`messages`** _(Array)_ - messages to display
- **`user`** _(Object)_ - user sending the messages
- **`onSend`** _(Function)_ - function to call when sending a message
- **`loadEarlier`** _(Bool)_ - enables the load earlier message button
- **`onLoadEarlier`** _(Function)_ - function to call when loading earlier messages
- **`locale`** _(String)_ - localize the dates
- **`isAnimated`** _(Bool)_ - animates the view when the keyboard appears
- **`renderAccessory`** _(Function)_ - renders a second line of actions below the message composer
- **`renderActions`** _(Function)_ - renders an action button on the left of the message composer
- **`renderAvatar`** _(Function)_ - renders the sender avatar
- **`renderBubble`** _(Function)_ - render the message bubble
- **`renderParsedText`** _(Function)_ - render the message text
- **`renderBubbleImage`** _(Function)_ - render the message image
- **`renderComposer`** _(Function)_ - render the text input message composer
- **`renderCustomView`** _(Function)_ - render a custom view inside the bubble
- **`renderDay`** _(Function)_ - render the day above a message
- **`renderInputToolbar`** _(Function)_ - render the composer container
- **`renderLoadEarlier`** _(Function)_ - render the load earlier button
- **`renderLoading`** _(Function)_ - render a loading view when initializing
- **`renderMessage`** _(Function)_ - render the message container
- **`renderSend`** _(Function)_ - render the send button
- **`renderTime`** _(Function)_ - render the message time
## LICENSE
- [MIT](LICENSE)
Binary file not shown.
Binary file not shown.

0 comments on commit b7fd3ae

Please sign in to comment.