Skip to content

Releases: GetStream/stream-chat-react-native

[3.6.1] (2021-07-07)

07 Jul 14:29
Compare
Choose a tag to compare
  • Fixed problem where it wasn't possible to clear giphy messages inside of a thread 6d8977d

[3.6.0] (2021-06-22)

22 Jun 18:28
Compare
Choose a tag to compare

This release provides full support for Expo 41 and React Native 0.64

Please make sure to upgrade following packages to specified versions:

[3.6.0-rc.0] (2021-05-02)

02 Jun 09:10
Compare
Choose a tag to compare
Pre-release

This release provides full support for Expo 41 and React Native 0.64

Please make sure to upgrade following packages to specified versions:

[3.5.0] (2021-05-28)

28 May 14:05
Compare
Choose a tag to compare

πŸ›‘ BREAKING

Following props have been renamed:

  • reply -> quotedReply
  • handleReply -> handleQuotedReply
  • handleReplyMessage -> handleQuotedReplyMessage

Features

  • Added new props to Channel component 219b307

    • maxMessageLength (number)
    • reactionsEnabled (boolean)
    • readEventsEnabled (boolean)
    • repliesEnabled (boolean)
    • typingEventsEnabled (boolean)
    • uploadsEnabled (boolean)
    • quoteRepliesEnabled (boolean)
    • threadRepliesEnabled (boolean)

Bug fixes

  • Update messages when mute status updates 885f8c2
  • Fixed broken "Resend message" functionality for failed messages 359c192
  • Fixed read receipts f7510e8
  • Fixed images as attachment from File Picker 5ca1a25

[3.4.0] (2021-05-14)

14 May 15:34
Compare
Choose a tag to compare

Features

  • Updated implementation around network recovery for smooth UX #658
  • Added support for MessageDeleted prop on Channel component, for overriding default deleted message component 65861d9
  • Refresh channel list when sort prop updates, on ChannelList 42450fa
  • Added support for typing indicator in threads 6f518ca
  • Added handler for channel.visible event 476c36e

Bug fixes

  • Updated implementation of network recovery fixes the issue of message list going blank intermittently
  • Added default sizes to Icons in OverlayReactionList component. 6b4db5f
  • Miscellaneous fixes around image picker opening and closing 950f746 4845e4e

[3.3.2] (2021-04-13)

13 Apr 09:17
Compare
Choose a tag to compare
  • Allow re-rerendering of MessageInput component, on changes to additionalTextInputProps 1b95a64
  • Fixed Android camera permissions check 5b77516

[3.3.1] (2021-04-09)

09 Apr 07:50
Compare
Choose a tag to compare
  • Fixed supportedReactions prop support on OverlayReactions #594
  • Fixed mentions autocomplete functionality for channels with > 100 members e8c93d3
  • Fixed theming issue on overlay for sent message (or my message) 7f11364
  • Exporting following components and hooks from SDK 3a3ae58
    • ChannelListLoadingIndicator
    • ChannelPreviewMessage
    • ChannelPreviewStatus
    • ChannelPreviewTitle
    • ChannelPreviewUnreadCount
    • InputButtons
    • useAppStateListener

[3.3.0] (2021-04-07)

07 Apr 13:20
Compare
Choose a tag to compare

New Features πŸŽ‰

  • Added inline date separators, which can be customized by adding your own UI component #581

    <Channel
      InlineDateSeparator={({ date }) => { /** Your custom UI */ }}
      maxTimeBetweenGroupedMessages={40000} // number of ms, after which further messages will be considered part of new group.
    >
  • Added ability to override default onLongPress, onPress, onPressIn and onDoubleTap handlers using following props on Channel component:

    • onLongPressMessage
    • onPressMessage
    • onPressInMessage
    • onDoubleTapMessage

    You will have access to payload of that handler as param:

    <Channel
      ...
      onLongPressMessage={({
        actionHandlers: {
            deleteMessage, // () => Promise<void>;
            editMessage, // () => void;
            reply, // () => void;
            resendMessage, // () => Promise<void>;
            showMessageOverlay, // () => void;
            toggleBanUser, // () => Promise<void>;
            toggleMuteUser, // () => Promise<void>;
            toggleReaction, // (reactionType: string) => Promise<void>;
        },
        defaultHandler, // () => void
        event, // any event object corresponding to touchable feedback
        emitter, // which component trigged this touchable feedback e.g. card, fileAttachment, gallery, message ... etc
        message // message object on which longPress occured
      }) => {
        /** Your custom action */
      }}
    />

πŸ›‘ BREAKING

  • 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)

    • openAttachmentPicker
    • closeAttachmentPicker
    • toggleAttachmentPicker
    • openCommandsPicker
    • openMentionsPicker
    • openFilePicker
  • Value typing (which is list of users who are typing), has been moved from ChannelContext to its own separate context - TypingContext c450719

Fixes

  • #522 initialValue not being set for inputbox 63b3d79
  • Fixed goToMessage functionality (when you press on quotedMessage) in MessageList #580
  • Fixed image picker not loading when swapping from keyboard a180ad4

[3.2.0] (2021-03-23)

23 Mar 21:43
Compare
Choose a tag to compare

πŸ›‘ BREAKING

  • Minimum required stream-chat version is 3.5.1.
  • Following values have been moved from MessagesContext a separate context - PaginatedMessageListContext
    • hasMore
    • messages
    • loadMore
    • loadMoreRecent
    • loadMoreThread
    • loadingMore
    • loadingMoreRecent

Non breaking:

Websocket and Push

From this release when app goes to background, websocket connection will be dropped by default.
This is necessary to allow push notifications.

We only send push notification, when user doesn't have any active websocket connection (which is established when you call client.connectUser). When your app goes to background, your device will keep the ws connection alive for around 15-20 seconds, and so within this period you won't receive any push notification. Until now, it was upto end user to drop the connection by explicitly calling client.closeConnection() or client.wsConnection.disconnect(), when app goes to background.
But from this release, we have moved this functionality to OOTB.

  • If you don't have push system configured for your application, you can disable this functionality by adding a prop on Chat component - closeConnectionOnBackground={false}
  • As described earlier, please make sure you are on stream-chat >= 3.5.1

Other

  • Allow use of Channel component with uninitialized channel
  • Allow custom config of i18next config
  • UI fixes and animation improvements for reactions

[3.1.2] (2021-02-17)

17 Mar 16:46
Compare
Choose a tag to compare

NO CODE CHANGE

Fixed versioning in version.json during package publishing, which we use to track the version of RN sdk through
client.setUserAgent call.