1.0.3 • Published 5 months ago

ceilr-rn-sdk v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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

  1. Fork the repo
  2. Create a feature branch (git checkout -b feature-name)
  3. Commit changes (git commit -m "Add new feature")
  4. Push to GitHub (git push origin feature-name)
  5. Open a Pull Request šŸš€

šŸ“œ License

This project is licensed under the MIT License.