zendesk-mobile-sdk-rn-marjanemall
v0.4.0
Published
zendesk mobile sdk for react native
Downloads
6
Readme
zendesk-mobile-sdk-rn
zendesk mobile sdk for react native
Installation
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' }
}
}
Usage
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();
}, []);
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