zendesk mobile sdk for react native
npm install zendesk-mobile-sdk-rn
and add this to build.gradle file (not app build.gradle)
allprojects {
repositories {
maven { url 'https://zendesk.jfrog.io/zendesk/repo' }
}
}
import { initZendesk, showHelpCenter, setColors /* just for ios*/ } from 'zendesk-mobile-sdk-rn';
// ...
React.useEffect(() => {
initZendesk({
zendeskUrl: ZendeskConfig.zendeskUrl,
appId: ZendeskConfig.appId,
clientId: ZendeskConfig.clientId,
});
// just for ios
setColors({
primaryColor: '#00ff00',
titleColor: '#ff0000',
placeholderColor: '#0000ff',
});
}, []);
const handleBtnClick = React.useCallback(() => {
showHelpCenter();
}, []);
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library