|
1 | 1 | # Changelog |
2 | 2 |
|
| 3 | +## [3.3.0] (2021-04-07) |
| 4 | + |
| 5 | +### New Additions |
| 6 | + |
| 7 | +- Added inline date separators, which can be customized by adding your own UI component [#581](https://github.com/GetStream/stream-chat-react-native/pull/581/files) |
| 8 | + |
| 9 | + ```jsx |
| 10 | + <Channel |
| 11 | + InlineDateSeparator={({ date }) => { /** Your custom UI */ }} |
| 12 | + maxTimeBetweenGroupedMessages={40000} // number of ms, after which further messages will be considered part of new group. |
| 13 | + > |
| 14 | + ``` |
| 15 | + |
| 16 | +- Added ability to override default onLongPress, onPress, onPressIn and onDoubleTap handlers using following props on Channel component: |
| 17 | + |
| 18 | + - onLongPressMessage |
| 19 | + - onPressMessage |
| 20 | + - onPressInMessage |
| 21 | + - onDoubleTapMessage |
| 22 | + |
| 23 | + You will have access to payload of that handler as param: |
| 24 | + |
| 25 | + ```jsx |
| 26 | + <Channel |
| 27 | + ... |
| 28 | + onLongPressMessage={({ |
| 29 | + actionHandlers: { |
| 30 | + deleteMessage, // () => Promise<void>; |
| 31 | + editMessage, // () => void; |
| 32 | + reply, // () => void; |
| 33 | + resendMessage, // () => Promise<void>; |
| 34 | + showMessageOverlay, // () => void; |
| 35 | + toggleBanUser, // () => Promise<void>; |
| 36 | + toggleMuteUser, // () => Promise<void>; |
| 37 | + toggleReaction, // (reactionType: string) => Promise<void>; |
| 38 | + }, |
| 39 | + defaultHandler, // () => void |
| 40 | + event, // any event object corresponding to touchable feedback |
| 41 | + emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc |
| 42 | + message // message object on which longPress occured |
| 43 | + }) => { |
| 44 | + /** Your custom action */ |
| 45 | + }} |
| 46 | + /> |
| 47 | + ``` |
| 48 | + |
| 49 | +### **🛑 BREAKING** |
| 50 | + |
| 51 | +- Following props are no longer accessible on `Input` component (which is used to customize underlying input box). They should be accessed from `MessageInputContext` (or corresponding hook - `useMessageInputContext`) |
| 52 | + |
| 53 | + - openAttachmentPicker |
| 54 | + - closeAttachmentPicker |
| 55 | + - toggleAttachmentPicker |
| 56 | + - openCommandsPicker |
| 57 | + - openMentionsPicker |
| 58 | + - openFilePicker |
| 59 | + |
| 60 | +- Value `typing` (which is list of users who are typing), has been moved from `ChannelContext` to its own separate context - `TypingContext` [c450719](https://github.com/GetStream/stream-chat-react-native/commit/c4507194956360ae27731fc81fed1d7dc1ed1861) |
| 61 | + |
| 62 | + |
| 63 | +### Fixes |
| 64 | + |
| 65 | +- [#522](https://github.com/GetStream/stream-chat-react-native/issues/522) `initialValue` not being set for inputbox [63b3d79](https://github.com/GetStream/stream-chat-react-native/pull/572/commits/63b3d7995b30dccf23aece51cbc7479388890fd0) |
| 66 | +- Fixed goToMessage functionality (when you press on quotedMessage) in MessageList [#580](https://github.com/GetStream/stream-chat-react-native/pull/580) |
| 67 | +- Fixed image picker not loading when swapping from keyboard [a180ad4](https://github.com/GetStream/stream-chat-react-native/commit/a180ad43fb1766f0252467c4d6aec84ca7c9e26d) |
| 68 | + |
3 | 69 | ## [3.2.0] (2021-03-23) |
4 | 70 |
|
5 | 71 | ### **🛑 BREAKING** |
|
0 commit comments