Kameleoon React Native Visitor Code Manager is a small helper package which provides default implementation for Kameleoon React Native SDK external Visitor Code Manager built on top of react-native-mmkv
library.
For more information refer to Official Kameleoon Documentation
-
npm -
npm install @kameleoon/react-native-storage
-
yarn -
yarn add @kameleoon/react-native-storage
-
pnpm -
pnpm add @kameleoon/react-native-storage
-
bun -
bun install @kameleoon/react-native-storage
While using @kameleoon/javascript-sdk
:
- Import
KameleoonStorage
- Instantiate and pass it to external SDK dependencies
import { KameleoonClient } from '@kameleoon/javascript-sdk';
import { KameleoonStorage } from '@kameleoon/react-native-storage';
const client = new KameleoonClient({
siteCode: 'my_site_code',
externals: {
storage: new KameleoonStorage(),
},
});