
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@talkjs/expo
Advanced tools
Official TalkJS SDK for React Native (Expo)
Note: This module is identical to @talkjs/react-native, except it has push notification support disabled. If you need push notifications, you can send them from your own backend using TalkJS webhooks or you can switch to @talkjs/react-native and create a development build for your project using EAS Build or eject to the bare workflow.
Expo's push notification support is rather limited which means that ejecting is the only option if you need advanced push notification UX features offered in Android, such as images in the notifications, making notifications appear as conversations, or grouping notifications per conversation.
TalkJS is a developer friendly chat API with a pre-built UI that is highly customisable. You can build a chat feature in minutes instead of months.
With TalkJS, you can create chat features that boost user engagement, retention, and conversion rate.
Don't hesitate to let us know if you have any questions about TalkJS.
expo install @talkjs/expo
You can import the library in one of the following ways:
ES6 / TypeScript:
import * as TalkjsRn from '@talkjs/expo';
CommonJS:
const TalkjsRn = require('@talkjs/expo');
Then follow our React Native guide to start using TalkJS in your project.
We promise to never break API compatibility. We may at times deprecate methods or fields, but we will never remove them. If something that used to work stops working, then that's a bug. Please report it and we'll fix it asap.
The package is being released in a beta state. The reason for this is that there are things that one can do with the TalkJS JavaScript SDK that aren't possible with the React Native SDK. We will release v1.0.0 of this package once the two SDKs are similar in terms of features. This however does not take away from our commitment to always maintain backward compatibility. So you can be assured that the package is stable for production use.
Note: These are only the changes that have an effect on the React Native package and its interface. TalkJS gets many improvements and fixes all the time. Consider subscribing to our changelog if you want to stay updated.
onSelectConversation
prop is not given. Previously, in this scenario, clicking on a conversation
would result in nothing happening. Now, the conversation will be selected and the TalkJS Inbox Mobile view
will be shown.onSelectConversation
in ConversationList
.onLeaveConversation
, onCustomMessageAction
and onCustomConversationAction
props. These are intended to replace
the methods with the same names. The methods have hence been deprecated. This change was made to ensure that this SDK's interface
matched the React SDK's
.off
method in both Chatbox
and ConversationList
.View
will be used in the empty areas around the TalkJS UI.getCurrentConversation
, onCustomConversationAction
, onLeaveConversation
and sendLocation
methods to Chatbox
.leave
method to ConversationBuilder
.Chatbox
and ConversationList
.conversation
property in SelectConversationEvent
from ConversationBuilder
to ConversationData
.Cannot assign to property '_injectJavaScript' which has only a getter
or
Attempted to assign to readonly property
when using React Native version 0.70 and below.Chatbox
and ConversationList
and it will be shown when
the respective components are loading the UI. This is mostly useful on first load. Subsequent loads of the
UI components are much faster.sendMessage
where a message would get sent multiple times in certain scenarios.captureKeyboardEvents
prop in Chatbox
not working.This is a minor update ensuring a great user experience when using voice messages, particularly on iOS.
To enable voice messages, you'll need to first enable it per role in the TalkJS dashboard. Then you'll need to specify the necessary permissions for both Android and iOS.
For Android, add the following to your AndroidManifest.xml
file:
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
For iOS, add the following to your Info.plist
file:
<key>NSMicrophoneUsageDescription</key>
<string>Messages shown to your user when the microphone is accessed for the first time</string>
Fix mark as read. This release ensures that messages are marked as read reliably as long as the chat is visible. If the app is in the background, or the chat is covered by the System UI (example: when receiving a call) then the messages won't be marked as read.
Fix rare crash on Android for SDK 28+ when the @react-navigation/native library is used.
With this release, we have updated the package's dependencies and peer dependencies to keep them up to date and also fix bugs in some of them.
As of npm v7, peer dependencies are installed by default so updating the TalkJS SDK should also update the peer dependencies accordingly. For yarn users, you may have to update the packages individually.
asGuest
prop in Chatbox.captureKeyboardEvents
and onKeyup
props.getText
and
typeText
to MessageField.oneOnOneId
to also accept User
Objects.showFeedHeader
default to false
.feedConversationTitleMode
, thirdParties
, onBlur
and onFocus
.chatSubtitleMode
, chatTitleMode
, thirdParties
, translateConversations
, onBlur
and onFocus
.FAQs
Official TalkJS SDK for React Native (Expo)
The npm package @talkjs/expo receives a total of 85 weekly downloads. As such, @talkjs/expo popularity was classified as not popular.
We found that @talkjs/expo demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.