volt-react-native-sdk
v1.0.28
Published
##### Volt React native SDK is a React Native libary that provides a customizable RN component tailored for integrating with volt. This component validates authentication tokens and dynamically integarates volt journey to display a tailored end to end ex
Downloads
685
Readme
Volt React native SDK
Volt React native SDK is a React Native libary that provides a customizable RN component tailored for integrating with volt. This component validates authentication tokens and dynamically integarates volt journey to display a tailored end to end experience.
Installation
To install the volt-react-native-sdk component, you need to have react-native-webview installed. If you haven't already installed it, you can do so by running:
npm install react-native-webview
npm install volt-react-native-sdk:
Usage
Here's a basic example of how to use the CustomWebViews component in your React Native application:
import { CustomWebView } from 'volt-react-native-sdk';
const App = () => {
return (
<CustomWebView
authToken="your-auth-token"
platformCode="your-platform-code"
environment="staging" // or "production"
ssoToken="optional-sso-token"
customerCode="optional-customer-code"
primaryColor="optional-primary-color"
secondaryColor="optional-secondary-color"
callBack={}// pass the callback method here
/>
);
};