SDK

React Native SDK

Unified SDK for React Native — one install covers features, paywall, auth, and monitor.

Install

npm install onelo-react-native

Initialize

import { Onelo } from 'onelo-react-native'

// Initialize once at app startup (e.g. in App.tsx)
const onelo = new Onelo({ publishableKey: 'onelo_pk_live_YOUR_KEY' })

// Identify the user — must be called before using any module
await onelo.identify(userId)

Usage

// Features — check feature visibility per user plan
onelo.features.isEnabled('export-button')        // → boolean
onelo.features.status('export-button')           // → 'enabled' | 'greyed' | 'hidden' | 'upsell'

// Gating — the Features SDK resolves each feature against the user's REAL plan
// (server-side, any plan names). Gate on that or the session entitlement:
if (!onelo.features.isEnabled('export-button')) {
  // blocked → render the feature's status (greyed / upsell) + your upgrade flow
}

Install: npm install onelo-react-native • GitHub: github.com/onelo-tools/onelo-react-native

Your publishable key

Replace onelo_pk_live_YOUR_KEY with your key from the dashboard → SDK tab.

React Native SDK — Onelo Docs