yarn stream-chat-react-native 3.3.0
[3.3.0] (2021-04-07)

latest releases: 9.2.0-beta.2, 9.2.0-beta.1, 9.1.3...
5 years ago

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

Don't miss a new stream-chat-react-native release

NewReleases is sending notifications on new releases.