How to customize the Knowledge Base module for the ASAP React Native SDK?
Knowledge Base Module
To display the Knowledge Base, use the following code snippet:
Article's deep-linking
We can use the following code snippet to display or navigate to a particular article's screen using a permalink:
- import {ZohoDeskPortalKB} from '@zohocorp/zohodesk-portal-kb';
ZohoDeskPortalKB.showArticle("Your article permalink")

Category/Section deep-linking
The following code snippet can be used to display or navigate to a particular category or sub-category screen using a permalink.
- import {ZohoDeskPortalKB} from '@zohocorp/zohodesk-portal-kb';
ZohoDeskPortalKB.showCategory("Your KB category permalink")
KB Configurations
To set the knowledge base configurations:
- import {ZohoDeskPortalKB} from '@zohocorp/zohodesk-portal-kb';
//Default values for these configurations are `false`
ZohoDeskPortalKB.setConfiguration({
disableArticleLike: false, // Set to `true` to disable the article like button
disableArticleDislike: false,// Set to `true` to disable the article dislike button
disableArticleDetailSearch: false// Set to `true` to disable search in article details screen
})
Method name | Functions | Default enabled/disabled status |
disableArticleLike | To hide the article like button | Enabled |
disableArticleDislike | To hide the article dislike button | Enabled |
disableArticleDetailsSearch | To hide the article details search | |