Quick start: Chat React Native SDK

Install

See Installation.

Initialize

import KustomerChat from '@kustomer/chat-react-native';
import type { KustomerOptions } from '@kustomer/chat-react-native';

const KUSTOMER_API_KEY = process.env.KUSTOMER_API_KEY; // Your Kustomer API key

const kustomerOptions: KustomerOptions = {
  // options for the Kustomer SDK
};

KustomerChat.configure(KUSTOMER_API_KEY, kustomerOptions);

KustomerOptions parameter options

OptionDefaultiOSAndroidDescription
enableUItrue❌❌Enables the Kustomer UI. Changing the default value is not yet supported.
showInAppNotificationsfalse✅✅Show in-app notifications for new messages.
languagedevice✅✅The language to show volume control, automated messages, snippets, and KB for.
activeAssistantundefined✅✅If supplied, always uses this chat assistant ID when pressing new conversation button in the UI.
hideNewConversationButtonfalse✅✅Never show the "New Conversation" button.
hostDomainundefined✅✅Override the API host domain.
businessScheduleIdundefined✅✅The business schedule ID you want the app to use.
brandIdundefined✅✅The brand ID for the brand settings you'd like to present.
logLevelKustomerLogType.all✅✅The highest KustomerLogType you want to have printed to the console. One of info, error, debug, warning, all.
hideKbArticleSharefalse✅✅Don't show the Knowledge Base Article Share button.
hideHistoryNavigationfalse✅✅Hides back button on conversation detail screen leading to chat history screen.
iosAnimate5Starfalse✅❌Show animation when customer selects the highest CSAT rating.
disablePushfalse✅❌See details and context in iOS Push Notifications guide.
pushBundleIdapp.bundleIdentifier✅❌The bundle ID for your app, if you need to override the default from your Bundle.
pushEnvironmentproduction✅❌The PubNub push environment for your app.

Did this page help you?