react-native-boogi-sdk
v1.0.0
Published
The react native Boogi SDK to handle offer management
Downloads
32
Readme
React Native Boogi SDK
This SDK provides a simple wrapper component around a WebView to embed the Boogi catalogue in your React Native app. It handles secure token-based access and safely redirects external links.
🚀 Features
- Embed Boogi catalogue with a token and optional mode
- Automatically handle external links
- Easy integration with React Native
- Customizable via props
📦 Installation
Install the required dependencies:
npm install react-native-boogi-sdkThen include the SDK file in your project.
🧩 Usage
import React from 'react';
import { BoogiSDK } from 'react-native-boogi-sdk';
const App = () => {
return (
<BoogiSDK token="your_secure_token_here" />
);
};🛠 Props
| Prop | Type | Default | Description |
|-------|-----------------------------|---------|----------------------------------------------|
| token | string | none | Required secure token for Boogi access |
| mode | 'api' or 'sandbox' | 'api' | (Optional) Mode to render the catalogue |
🌐 External Links Handling
The component intercepts navigation requests:
- Internal navigation remains inside the
WebView. - External URLs (non-catalogue links) open in the native browser using
Linking.openURL.
📱 Styling
The SDK automatically adjusts to the full height and width of the device screen using Dimensions.
🧪 Example
<BoogiSDK token="abc123" />This will load your offer SDK you have setup in the dashboard:
📋 License
MIT – Feel free to use and contribute.
