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
enableUItrueEnables the Kustomer UI. Changing the default value is not yet supported.
showInAppNotificationsfalseShow in-app notifications for new messages.
languagedeviceThe language to show volume control, automated messages, snippets, and KB for.
activeAssistantundefinedIf supplied, always uses this chat assistant ID when pressing new conversation button in the UI.
hideNewConversationButtonfalseNever show the "New Conversation" button.
hostDomainundefinedOverride the API host domain.
businessScheduleIdundefinedThe business schedule ID you want the app to use.
brandIdundefinedThe brand ID for the brand settings you'd like to present.
logLevelKustomerLogType.allThe highest KustomerLogType you want to have printed to the console. One of info, error, debug, warning, all.
hideKbArticleSharefalseDon't show the Knowledge Base Article Share button.
hideHistoryNavigationfalseHides back button on conversation detail screen leading to chat history screen.
iosAnimate5StarfalseShow animation when customer selects the highest CSAT rating.
disablePushfalseSee details and context in iOS Push Notifications guide.
pushBundleIdapp.bundleIdentifierThe bundle ID for your app, if you need to override the default from your Bundle.
pushEnvironmentproductionThe PubNub push environment for your app.