@kameleoon/react-native-visitor-code-manager
v1.0.1
Published
Kameleoon React Native Visitor Code Manager
Downloads
1,909
Readme
Kameleoon React Native Visitor Code Manager
Introduction
Kameleoon React Native Storage is a small helper package which provides default implementation for Kameleoon React Native SDK Visitor Code Manager built on top of react-native-mmkv
library.
For more information refer to Official Kameleoon Documentation
Contents
Installation
- npm -
npm install @kameleoon/react-native-visitor-code-manager
- yarn -
yarn add @kameleoon/react-native-visitor-code-manager
- pnpm -
pnpm add @kameleoon/react-native-visitor-code-manager
- bun -
bun install @kameleoon/react-native-visitor-code-manager
Configuration
While using @kameleoon/javascript-sdk
:
- Import
KameleoonVisitorCodeManager
- Instantiate and pass it to external SDK dependencies
import { KameleoonClient } from '@kameleoon/javascript-sdk';
import { KameleoonVisitorCodeManager } from '@kameleoon/react-native-visitor-code-manager';
const client = new KameleoonClient({
siteCode: 'my_site_code',
externals: {
visitorCodeManager: new KameleoonVisitorCodeManager(),
},
});