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

1.1.0 • Public • Published

Kameleoon React Native EventSource

Introduction

Kameleoon React Native EventSource is a small helper package which provides default implementation for Kameleoon React Native SDK external Storage built on top of react-native-event-source-ts library.

For more information refer to Official Kameleoon Documentation

Contents

Installation

  • npm - npm install @kameleoon/react-native-event-source
  • yarn - yarn add @kameleoon/react-native-event-source
  • pnpm - pnpm add @kameleoon/react-native-event-source
  • bun - bun install @kameleoon/react-native-event-source

Configuration

While using @kameleoon/javascript-sdk:

  • Import KameleoonEventSource
  • Instantiate and pass it to external SDK dependencies
import { KameleoonClient } from '@kameleoon/javascript-sdk';
import { KameleoonEventSource } from '@kameleoon/react-native-event-source';

const client = new KameleoonClient({
  siteCode: 'my_site_code',
  externals: {
    eventSource: new KameleoonEventSource(),
  },
});

Package Sidebar

Install

npm i @kameleoon/react-native-event-source

Weekly Downloads

357

Version

1.1.0

License

ISC

Unpacked Size

5.25 kB

Total Files

8

Last publish

Collaborators

  • mmunhurrun
  • vinyutochkin
  • kameleoon-sdk