TalkJS for React Native v0.3.0
New Expo SDK
To properly support users of Expo's Managed Workflow, we have released a new package: @talkjs/expo. This package is identical to @talkjs/react-native except it has push notifications disabled. This is because the push notification libraries used have native code which make them incompatible with the Managed Workflow.
If you need push notifications, you can send them from your own backend using our webhooks or you can use @talkjs/react-native and create a development build for your project using EAS Build or eject to the bare workflow.
The versioning for this new package will be identical to @talkjs/react-native
Better Notifications
We have changed the libraries we use for push notifications which has allowed us to greatly improve notifications, particularly on Android. Notifications are now shown as Conversations and grouped accordingly. Applies only to devices running Android 7.0 (API level 24) and up.
Images sent will also appear in the notifications. (Android only).
The function, registerPushNotificationHandlers
, now allows for more configuration options when creating Android's Notification Channels. It also supports providing iOS notification related permissions you want your app to have.
As part of these changes you'll need to update your android/build.gradle
file by adding the following block to the repositories
section of allprojects
:
maven { url "$rootDir/../node_modules/@notifee/react-native/android/libs" }
Better Error Reporting
It should now be clearer what is wrong with your code. Should you encounter a scenario where an error has occurred but React Native's Logbox doesn't show, notify us via our livesupport.
Other changes
- Add support for Guest Access through the addition of
asGuest
prop inChatbox
. - Enable capturing of keyup events in Chatbox through the
captureKeyboardEvents
andonKeyup
props. - Added the methods:
getText
andtypeText
to MessageField. - Changed
oneOnOneId
to also acceptUser
Objects. - Changed
showFeedHeader
default tofalse
. - Fix issue when user and/or conversation synchronization were disabled.
- Deprecated the following props in ConversationList:
feedConversationTitleMode
,thirdParties
,onBlur
andonFocus
. - Deprecated the following props in Chatbox:
chatSubtitleMode
,chatTitleMode
,thirdParties
,translateConversations
,onBlur
andonFocus
.