All the changes are non-breaking
-
Adding support for custom UI component prop -
InputtoMessageInput. It allows shuffling of UI inside MessageInput -
Adding support for following UI component props to
MessageSimple- UrlPreview
- Giphy
- FileAttachment
- FileAttachmentGroup
- Card
- CardHeader
- CardCover
- CardFooter
-
Adding support for following UI component props to
Attachment- UrlPreview
- Giphy
- FileAttachment
- FileAttachmentGroup
- Card
- CardHeader
- CardCover
- CardFooter
-
Adding support for following UI component props to
Card- Header
- Cover
- Footer
-
Adding following theme keys:
message.card.footer.title(Text)message.card.footer.description(Text)message.card.footer.link(Text)message.card.footer.logo(Image)iconSquare.container(TouchableOpacity or View)
-
Fixing typos in docs
-
Updating format of message date time to
LTfromhh:ssA, to allow i18n -
Fixing pagination logic for ChannelList in case of duplicates
NOTE Please make sure to use stream-chat@^1.7.0
- Fixing moderator, owner, admin checks for message actions 80dfb86
-
Adding support for following props on MessageInput component c5ada59
- onChangeText
- initialValue
- Disabling (disabling
TouchableOpacitywrapper)SendButtonif message is not valid (empty text and no attachments) - Syncing this
rcwith latest master (0.8.1) - Moving external expo dependencies to peerDependencies
- Fixing issue with MessageStatus not showing up on mount 61388c3
-
MessageSimple
new props
MessageRepliesUI component to override default2 repliestext/componentMessageHeaderUI component to add some content on top of message content (text, attachments)ReactionListUI component to override default ReactionList componentsupportedReactionsArray of reactions which should be available or supported in reaction picker. Example
deprecated props
emojiDatePlease use supportedReactions instead
-
MessageAvatar
new props
alignment('right' | 'left')
-
MessageContent
new props
- All the new props to MessageSimple are available in MessageContent
alignment('right' | 'left')
-
ReactionPickerWrapper
In previous version, you could open reaction picker only after clicking/pressing
ReactionList, which made it hard to change the functionality ofReactionListwithout copy pasting lots of code regarding opening ofReactionPicker. And also ReactionPicker logic was tightly coupled with MessageContent component (which meant added complexity) With ReactionPickerWrapper, we are taking out all the ReactionPicker related logic (setting the position of reaction picker at message which was touched) from MessageContent. So you can now add open reaction picker on press functionality on any component that you wish. You just need to wrap your component withReactionPickerWrappercomponent.You can also adjust the relative position at which ReactionPicker opens up or shows up by altering
offsetprop on ReactionPickerWrapper.Default value is:
{ top: 40, left: 30, right: 10, }NOTE: This component was present in repository in previous versions as well, but it was super buggy.
TL;DR Enables you to build custom ReactionList, on touch of which, ReactionPicker will open up
Please check this example from cookbook for details - https://github.com/GetStream/stream-chat-react-native/blob/vishal/docs-improvement/docs/cookbook.md#message-bubble-with-reactions-at-bottom-of-message
-
Channel
- Update the component, when
channelprop changes.
- Update the component, when
- Fixing issue with MessageStatus not showing up on mount 61388c3
- Moving external expo dependencies to peerDependencies
- Disabling (disabling
TouchableOpacitywrapper)SendButtonif message is not valid (empty text and no attachments) - Syncing this
rcwith latest master (0.8.1)
- Disabling interactions with MessageList and MessageInput if channel is frozen. 2c4e1a2
- Adding missing
styleto all our component in typescript a2ac0b4
-
MessageSimple
new props
MessageRepliesUI component to override default2 repliestext/componentMessageHeaderUI component to add some content on top of message content (text, attachments)ReactionListUI component to override default ReactionList componentsupportedReactionsArray of reactions which should be available or supported in reaction picker. Example
deprecated props
emojiDatePlease use supportedReactions instead
-
MessageAvatar
new props
alignment('right' | 'left')
-
MessageContent
new props
- All the new props to MessageSimple are available in MessageContent
alignment('right' | 'left')
-
ReactionPickerWrapper
In previous version, you could open reaction picker only after clicking/pressing
ReactionList, which made it hard to change the functionality ofReactionListwithout copy pasting lots of code regarding opening ofReactionPicker. And also ReactionPicker logic was tightly coupled with MessageContent component (which meant added complexity) With ReactionPickerWrapper, we are taking out all the ReactionPicker related logic (setting the position of reaction picker at message which was touched) from MessageContent. So you can now add open reaction picker on press functionality on any component that you wish. You just need to wrap your component withReactionPickerWrappercomponent.You can also adjust the relative position at which ReactionPicker opens up or shows up by altering
offsetprop on ReactionPickerWrapper.Default value is:
{ top: 40, left: 30, right: 10, }NOTE: This component was present in repository in previous versions as well, but it was super buggy.
TL;DR Enables you to build custom ReactionList, on touch of which, ReactionPicker will open up
Please check this example from cookbook for details - https://github.com/GetStream/stream-chat-react-native/blob/vishal/docs-improvement/docs/cookbook.md#message-bubble-with-reactions-at-bottom-of-message
-
Channel
- Update the component, when
channelprop changes.
- Update the component, when
- Replacing momentjs with dayjs
- Changes to
Streami18nconstructor options:- Breaking change: replacing
momentLocaleConfigForLanguagewithdayjsLocaleConfigForLanguage - deprecating
Moment. Instead useDateTimeParser
- Breaking change: replacing
- Updating
stream-chatto1.6.0b62fa95 - Avoid showing empty cover if image url is empty ddbbadb
- Subscribing ChannelList to
user.updatedevent 7ea6110 - Fixing channel.updated and channel.deleted event handler to not break if channel is not in list 1404860
- Extending style support for
TypingIndicatorcomponent, 5874b73 - Added styling support for editing box of
MessageInput. 2968684 - Adding prop
doMarkReadRequestto Channel component, to override markRead api call. 1afda94 - Adding boolean prop
hideReactionCountandhideReactionOwnersinMessageSimplecomponent. 3814266 MessageInputandMessageListcomponent as prop inThreadcomponent. db97289- Disabling keyboard listeners when app goes to background 8a372e6
- Dismiss keyboard when opening actionsheet. bb12a55
- Disable escaping in translator function. a5118dc
- Allow moderator to edit/delete message. 44165f6
- Adding support for custom moment object in Streami18n class 7557c70
- Introducing internationalisation (i18n) support for the sdk https://github.com/GetStream/stream-chat-react-native/blob/master/src/components/docs/Streami18n.md
-
Adding following props to KeyboardCompatibleView component 6650109
- keyboardDismissAnimationDuration
- keyboardOpenAnimationDuration
- enabled
-
Adding following props to Channel component 6650109
- KeyboardCompatibleView
- disableKeyboardCompatibleView
-
Fixing title of send button 0990cb5
-
Fixing channel preview avatar for one-on-one conversation 790b0b9
-
Fixing types for context providers - dc40c8a
- Adding a simple check to see if lastReceivedId has changed, before updating the state - to avoid infinite loop 3da5e4a
-
Fixing image index for Image viewer (d16e86c)
Issue - if attachment gallery, when you click/touch on 1st photo, it opens image viewer at 1st photo. But if you touch 2nd photo, it still opens image viewer at first photo.
- Adding support for prop
formatLatestMessageDateinChannelPreviewMessengercomponent (9a8d9a3) - Adding support for prop
latestMessageLengthinChannelPreviewMessengercomponent (ef5b887) - Adding types for
SendButtonto typescript file (ad5c728) - Fixing date issue in
MessageSystemcomponent. (35c18e3) - Adding prop for AttachButton to MessageInput (600b1d2)
- Adding prop
formatDatetoMessageSimplecomponent (c3cfdf6) - Adding style and text customizability to LoadingIndicator (232241c)
- Added support for following props to
Channelcomponent:
- When you change the filters prop on the ChannelList component this now we will refresh the channels with the new query
- Exporting all the missing components and utils
- AutoCompleteInput
- Card
- CommandsItem
- DateSeparator
- EmptyStateIndicator
- EventIndicator
- FileAttachmentGroup
- FileUploadPreview
- Gallery
- IconSquare
- ImageUploadPreview
- KeyboardCompatibleView
- LoadingErrorIndicator
- LoadingIndicator
- MentionsItem
- Message
- MessageNotification
- MessageSystem
- ReactionList
- Spinner
- SuggestionsProvider
- UploadProgressIndicator
- Refining prop-types and typescript types for components.
- Fixed issue about app crash when document picker is cancelled - #110
- Adding
onPressandonLongPressprops onMessageSimplecomponent - Fixing theme paths for MessageNotification component.
- Replacing theme path
messageList.messageNotificationTextwithmessageList.messageNotification.text(#3593dfb) - Replacing theme path
messageList.messageNotificationwithmessageList.messageNotification.container(#3593dfb)
- Adding support for following props
additionalParentMessagePropsadditionalMessageListPropsadditionalMessageInputProps
- Adding missing types for prop
additionalFlatListPropsin MessageList and ChannelList
- Adding support for following props
additionalParentMessagePropsadditionalMessageListPropsadditionalMessageInputProps
- Adding missing types for prop
additionalFlatListPropsin MessageList and ChannelList
- Changes to add compatibility for Expo 36. Adding netinfo as peer dependency - GetStream#97
- Disabling the longpress on image viewer (in Attachment) - GetStream#100 to avoid freezing of UI.
- Fixing broken threads issue
- Support for
additionalFlatListPropsprop inMessageListandChannelListcomponent - Changing proptype for component type props to
elementTypeinstead offunc
- Disabling the longpress on image viewer (in Attachment) - GetStream#100 to avoid freezing of UI.
- Fixing broken threads issue
- Support for
additionalFlatListPropsprop inMessageListandChannelListcomponent - Changing proptype for component type props to
elementTypeinstead offunc
- Adding support for customizing markdown styles - https://github.com/GetStream/stream-chat-react-native/pull/99/files#diff-ede54911d9164ea37e65e92f2e18cb91R56
- Removing
textproperty theme withtextContainer.
- Adding support for
onChannelTruncatedprop to ChannelList - Updating channel from channel list once
channel.truncatedevent is received - Fixed image picker for native package and examples
- Adding support for
onChannelDeletedprop to ChannelList - Removing channel from channel list once
channel.deletedevent is received
- Adding strict string type check for channel name
- Updated example apps
- Updated readme doc
- Showing TypingIndicatorContainer only when necessary
- Adding logs to Chat, ChannelList and Channel component
- Optimizing MessageList and ChannelList component - GetStream#84
- Adding support for
AttachmentFileIconprop.
- Adding support for
actionSheetStylesprop, so as to add more customizability for styles of actionsheet.
- Fixing some styles for actionsheet in MessageSimple component.
- Avoiding query channel api call when there are no more messages to render
- Making markRead api call only if unread count is > 0
- Making empty value of
typingobject - immutable - Adding support for
SendButtonUI component prop
- Fixing bug in themed HOC
- Adding typescript declaration file for expo and native package
- Adding typescript declaration file
- Adding style customization support for actionsheet
- Fixing expo package for NetInfo changes
- Fixing deprecated warnings coming from NetInfo library
- Adding onMessageTouch and dismissKeyboardOnMessageTouch prop for MessageList component
- Fixing style issue (background color) of MessageText component, introduced in 0.2.4
- Fixing bug in theme logic
- Adding ability to customize more the MessageSimple component
- Fixing pagination issue when oldest message is not received yet
- Updated example two to react native 0.60
- Fixing UX for image/file picker - closing keyboard when you open file/image picker actionsheet
- Making sdk compatible with Expo 33 and 34
- Making sdk compatible with react native 0.60
- Updating ChannelPreviewMessenger component to show other member's name as channel title if channel has no explicate name in channel.data
- Fixing keyboard compatible view for android. Status bar height was not taken into account while calculating the height of channel after opening keyboard.
- Fixing prop to override Attachment UI component
- Attachment for URL preview were broken. Fixed.
- Adding prop function
onChannelUpdatedas callback for eventchannel.updated - Bug fix - Channel list component doesn't update when custom data on channel is updated.