Releases: GetStream/stream-chat-react-native
[2.1.1] 2020-12-21
- Fixed broken mentions autocomplete feature for channels with more than 100 members. #457
- Added a new prop
autocompleteSuggestionsLimiton MessageInput - Max number of suggestions to display in list. Defaults to 10.
[2.1.0] 2020-12-07
[2.0.2] 2020-11-16
[2.0.1] 2020-11-16
[2.0.0] 2020-10-29
Please check Upgrade Docs for upgrading from 0.x.x to 2.x.x
BREAKING CHANGES
- You will need to install https://github.com/LinusU/react-native-get-random-values and add this line
import 'react-native-get-random-values';to yourindex.js - Expo 39 is now the lowest supported version
Typescript
This library has been moved to full typescript. Please check Typescript doc for details
Component prop changes
Channel
- add
additionalKeyboardAvoidingViewPropsprop to allow custom keyboard props
ChannelListMessenger
- remove
setActiveChannelprop
ChannelPreviewMessenger
- renamed the
latestMessageprop tolatestMessagePreview. This name change is more semantic to what the prop does and reduces confusion with thelastMessageprop
MessageContent
- removed
retrySendMessageprop in favor ofretrySendMessagewithinMessagesContext
MessageInput
- remove
parentprop toparent_idas it needs to be just an id string instead of the entire parent object - add
setInputRefprop to actually allow forwarding of the TextInput ref controls
MessageSystem
- add
formatDateprop to allow custom date formatting
ChannelContext
-
We have split the
ChannelContextinto three separate contexts to further modularize the code and reduce renders as items in context change. The following contexts now contain the following values, previously all held within theChannelContext:-
ChannelContext:channeldisabledEmptyStateIndicatorerroreventHistorylastReadloadingLoadingIndicatormarkReadmembersreadsetLastReadtypingwatcherCountwatchers
-
MessagesContextAttachmentclearEditingStateeditingeditMessageemojiDatahasMoreloadingMoreloadMoreMessagemessagesremoveMessageretrySendMessagesendMessagesetEditingStateupdateMessage
-
ThreadContextcloseThreadloadMoreThreadopenThreadthreadthreadHasMorethreadLoadingMorethreadMessages
-
-
All contexts are exported and any values can be accessed through a higher order component (ex:
withMessagesContext) or with one of our custom context hooks (ex: accessMessagesContextbyconst { messages } = useMessagesContext();).
[1.3.5] 2020-10-27
- Fixing keyboard issue during app state change a8aa4ed
[2.0.0-beta.0] 2020-10-14
Upgrade
Please check Upgrade Docs for complete summary of upgrading from 0.x.x to 2.x.x
Changelog
BREAKING CHANGES
- You will need to install https://github.com/LinusU/react-native-get-random-values and add this line
import 'react-native-get-random-values';to yourindex.js - Expo 39 is now the lowest supported version
Typescript
This library has been moved to full typescript. Please check Typescript doc for details
Component prop changes
Channel
- add
additionalKeyboardAvoidingViewPropsprop to allow custom keyboard props
ChannelListMessenger
- remove
setActiveChannelprop
ChannelPreviewMessenger
- renamed the
latestMessageprop tolatestMessagePreview. This name change is more semantic to what the prop does and reduces confusion with thelastMessageprop
MessageContent
- removed
retrySendMessageprop in favor ofretrySendMessagewithinMessagesContext
MessageInput
- remove
parentprop toparent_idas it needs to be just an id string instead of the entire parent object - add
setInputRefprop to actually allow forwarding of the TextInput ref controls
MessageSystem
- add
formatDateprop to allow custom date formatting
ChannelContext
-
We have split the
ChannelContextinto three separate contexts to further modularize the code and reduce renders as items in context change. The following contexts now contain the following values, previously all held within theChannelContext:-
ChannelContext:channeldisabledEmptyStateIndicatorerroreventHistorylastReadloadingLoadingIndicatormarkReadmembersreadsetLastReadtypingwatcherCountwatchers
-
MessagesContextAttachmentclearEditingStateeditingeditMessageemojiDatahasMoreloadingMoreloadMoreMessagemessagesremoveMessageretrySendMessagesendMessagesetEditingStateupdateMessage
-
ThreadContextcloseThreadloadMoreThreadopenThreadthreadthreadHasMorethreadLoadingMorethreadMessages
-
-
All contexts are exported and any values can be accessed through a higher order component (ex:
withMessagesContext) or with one of our custom context hooks (ex: accessMessagesContextbyconst { messages } = useMessagesContext();).
[1.3.4] 2020-10-13
- Fixing keyboard glitch functionality for android a7f94b9
[1.3.3] 2020-10-05
- Fixing retry upload functionality e89b87f
[1.3.2] 2020-10-02
-
SuggestionsList (for user-mentions feature in MessageInput) doesn't update the position as per keyboard position. For the time being, we have fixed this by dismissing the suggestions list when keyboard gets dismissed - 0fdff4f
-
Exported IconBadge and IconSquare components, to fix the tutorial f1b6a39
-
Added file size to file attachment 7e653a4