0.5.0 • Published 1 year ago

react-native-salesforce-chat-sdk v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

0.5.0

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago