react-native-salesforce-chat-sdk
v0.6.0
Published
test
Downloads
504
Maintainers
Readme
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