ceilr-rn-sdk
v1.0.3
Published
CeilR React Native SDK for feature access and usage tracking
Downloads
7
Maintainers
Readme
CeilR React Native SDK (ceilr-rn-sdk)
🚀 CeilR SDK is a React Native library for feature access management, usage tracking, and entitlement fetching.
📦 Installation
Install the package in your React Native project:
npm install ceilr-rn-sdk🛠️ Setup
Initialize the SDK in your app:
import CeilR from 'ceilr-rn-sdk';
CeilR.init('your-api-key', 'customer-id');🚀 Features
✅ Check Feature Access
const hasAccess = await CeilR.checkFeature('premium_feature');
console.log('Feature Access:', hasAccess);📊 Track Usage
await CeilR.trackUsage('api_calls', 1);🔑 Get User Entitlements
const entitlements = await CeilR.getUserEntitlements();
console.log('User Entitlements:', entitlements);📡 Offline Support
- Requests are queued when offline and retried when the device is back online.
🔄 Updating the SDK
To update to the latest version:
npm update ceilr-rn-sdk🤝 Contributing
- Fork the repo
- Create a feature branch (
git checkout -b feature-name) - Commit changes (
git commit -m "Add new feature") - Push to GitHub (
git push origin feature-name) - Open a Pull Request 🚀
📜 License
This project is licensed under the MIT License.
