Salesforce Embedded Service Chat SDK
npm install react-native-salesforce-chat-sdk
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,
});
import { closeChat } from 'react-native-salesforce-chat-sdk';
closeChat();
import { setAppearance } from 'react-native-salesforce-chat-sdk';
setAppearance({
navbarBackground: '#ffffff',
});
Please follow Salesforce's doc instructions
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library