1.0.0 • Published 4 months ago

@kameleoon/react-native-storage v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
4 months ago

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(),
  },
});
1.0.0

4 months ago