
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.
@kustomer/chat-react-native
Advanced tools
Embed Kustomer in your own products with our chat SDK for React Native.
yarn add @kustomer/chat-react-native
npx pod-install
In order to fix a dependency build issue, a postinstall
script will be ran, that will edit your Podfile
to add a post_install
hook that will override the build_type
of PubNubSwift
.
You can configure the SDK either in your AppDelegate.m
or in your JS/TS sources.
To configure the SDK in your AppDelegate.m
:
First, import KustomerChat
Then add a call to Kustomer via your didFinishLaunchingWithOptions
:
import KustomerChat
// if you use the following API key, you will be able to chat with one of the RN SDK developers when they're online
NSString * const apiKey = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYzNTY1MjI1ODdiOTU1YmYzNDFlZDU3ZCIsInVzZXIiOiI2MzU2NTIyNTMyZDlkODYzOWNkMTMwMmMiLCJvcmciOiI2MzUxN2E2YzVmMjdiY2MzNDFjMjQzZDEiLCJvcmdOYW1lIjoienp6LWtmLXN0YWdpbmciLCJ1c2VyVHlwZSI6Im1hY2hpbmUiLCJwb2QiOiJzdGFnaW5nIiwicm9sZXMiOlsib3JnLnRyYWNraW5nIl0sImF1ZCI6InVybjpjb25zdW1lciIsImlzcyI6InVybjphcGkiLCJzdWIiOiI2MzU2NTIyNTMyZDlkODYzOWNkMTMwMmMifQ.RcCT4lIYUXd5pxVE0Srp3jawlbJXoj7O0qW2WV-NC1g";
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
Kustomer.configure(apiKey: process.env.KUSTOMER_API_KEY, options: nil, launchOptions: launchOptions)
}
You can configure the SDK this way too, follow the remainder of the iOS
section here
Due to a late init issue, for Android, you want to configure the SDK in your MainApplication.java/kt
for now:
public void onCreate() {
// ...
KustomerChat.configure(apiKey, options);
}
Another way to configure the SDK is to do it in your JS/TS sources:
import KustomerChat from '@kustomer/chat-react-native';
KustomerChat.configure(apiKey, options);
Add the following to your Info.plist
for file upload support:
Privacy - Camera Usage Description
Privacy - Media Library Usage Description
Privacy - Microphone Usage Description
Privacy - Photo Library Usage Description
For auth setup, see the iOS docs
import KustomerChat from '@kustomer/chat-react-native';
KustomerChat.show(KustomerDisplayMode); // KustomerDisplayMode is an optional enum param
For Android, see the Android docs For iOS, see the iOS docs
We are working on a way to customize colors in JS/TS sources, once, but it is currently not possible with the native SDKs.
You can view the license here
WIP: Most of the APIs are stable, and no major changes are expected in the way the SDK works.
react-native-permissions
or react-native-push-notification
or react-native-firebase
AppDelegate.m
accordingly.ℹ️ Note: this will likely match android's behavior in the future
react-native-firebase
), and call setPushToken
once a token is received.KustomerChat.onRemoteMessage
in your onRemoteMessage
callback. You can use isKustomerNotification
to check if the message is from Kustomer, and should be forwarded.FAQs
Kustomer Chat SDK wrapper for React Native
The npm package @kustomer/chat-react-native receives a total of 392 weekly downloads. As such, @kustomer/chat-react-native popularity was classified as not popular.
We found that @kustomer/chat-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 57 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.