2.0.0 • Published 9 months ago
@kameleoon/react-native-storage v2.0.0
Kameleoon React Native Visitor Code Manager
Introduction
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
Contents
Installation
- 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
Configuration
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(),
},
});