DEVELOPER GUIDE
Integration with WhiteLabel

React Native integration

3min

Accessing Link using webview

Use react-native-webview as WebView component to load Link for authorization and data sharing.

JS


If you were a klavi customer before 22/11/2024, you may be able to use the links according to the old nomenclature, then, the urlWhiteList response may look like: 'https://open-sandbox.klavi.ai', 'https://open-testing.klavi.ai', 'https://open.klavi.ai',

The WebView source may also look differently, such as the example below: https://open-testing.klavi.ai/data/v1/basic-links/ofpfdemo?redirect_url=klavilinkdemorn%3A%2F%2Fredirect

WebView needs to set originWhitelist to '*', then the method onShouldStartLoadWithRequest can intercept all requests.

It is necessary to set up a whitelist containing the domain name of klavi. Otherwise the klavi link will be opened with the system browser.cept all requests.

GitHub

Demo App DownLoad

Document image