SDK
React Native SDK
Unified SDK for React Native — one install covers features, paywall, auth, and monitor.
Install
npm install onelo-react-nativeInitialize
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' })
// Sign the user in with Onelo Auth (see the Auth snippet). Every module then
// acts for the signed-in user automatically — there is no identify() call to
// make.Usage
// Features — check feature visibility per user plan
onelo.features.feature('export-button').isEnabled // → boolean
onelo.features.feature('export-button').status // → '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.feature('export-button').isEnabled) {
// 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.