@kameleoon/react-native-storage
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Package Sidebar

Install

npm i @kameleoon/react-native-storage

Weekly Downloads

87

Version

1.0.0

License

ISC

Unpacked Size

6.57 kB

Total Files

9

Last publish

Collaborators

  • kameleoon-sdk
  • vinyutochkin
  • mmunhurrun