react-native-salesforce-chat-sdk
TypeScript icon, indicating that this package has built-in type declarations

0.6.0 • Public • Published

react-native-salesforce-chat-sdk

Salesforce Embedded Service Chat SDK

Installation

npm install react-native-salesforce-chat-sdk

Usage

Start a new chat

import { startChat } from 'react-native-salesforce-chat-sdk';

const chatConfig = {
  liveAgentPod: '',
  buttonId: '',
  deploymentId: '',
  orgId: '',
};

const preChatDatas = [];

const prechatEntitiesData = [];

const displayConfig = {};

const backgroundConfig = {};

const result = await startChat({
  chatConfig,
  preChatDatas,
  prechatEntitiesData,
  displayConfig,
  backgroundConfig,
});

Close the chat

import { closeChat } from 'react-native-salesforce-chat-sdk';

closeChat();

Set Appearance(iOS only)

import { setAppearance } from 'react-native-salesforce-chat-sdk';

setAppearance({
  navbarBackground: '#ffffff',
});

Android Appearance

Please follow Salesforce's doc instructions

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT


Made with create-react-native-library

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.6.07latest

Version History

VersionDownloads (Last 7 Days)Published
0.6.07
0.5.0126
0.4.11
0.4.01
0.3.21
0.3.11
0.3.01
0.2.01

Package Sidebar

Install

npm i react-native-salesforce-chat-sdk

Weekly Downloads

139

Version

0.6.0

License

MIT

Unpacked Size

36.1 MB

Total Files

602

Last publish

Collaborators

  • navy774989