Perkox React Native SDK
Official documentation for integrating the Perkox Offerwall into React Native applications.
📖 Table of Contents
Getting Started├── Introduction├── Requirements├── Installation├── Quick Start
Integration├── SDK Initialization├── Configuration├── User Identification├── Show Offerwall├── Reward Events├── Offerwall Events├── Update User ID
Platform Setup├── Android Setup├── iOS Setup├── Expo Support├── Sandbox vs Production
Advanced├── API Reference├── SDK Configuration├── Error Handling├── Debugging├── Best Practices
Backend├── Server-to-Server Postbacks├── Reward Validation
Resources├── FAQ├── Troubleshooting├── ChangelogPage 1 — Introduction
# React Native SDK
Welcome to the Perkox React Native SDK.
The Perkox SDK enables mobile applications to integrate a native Offerwall experience with minimal code while supporting both Android and iOS through a single React Native package.
## Features
- Native Android & iOS implementation- React Native bridge- TypeScript support- Reward event callbacks- Offerwall lifecycle events- Secure SDK initialization- Sandbox & Production environments
## Supported Platforms
| Platform | Supported ||----------|-----------|| React Native | 0.72+ || Android | API 21+ || iOS | 13+ |
## Package
npm
@perkoxofficial/react-native-sdkPage 2 — Installation
or Yarn
or PNPM
iOS
Android
Add JitPack repository
Ensure
exists in AndroidManifest.xml.
Initialize
Launch Offerwall
Explain:
Native fullscreen experience
Authentication
Reward flow
Automatic dismissal
Page 6 — Reward Events
Document the reward object:
Explain that rewards should always be validated via the server-to-server (S2S) postback before granting permanent in-app currency or items.
Page 7 — Offerwall Events
Lifecycle:
Page 8 — API Reference
Document every SDK method in one place.
init()
Initialize SDK
showOfferwall()
Display Offerwall
setUserId()
Update current user
onReward()
Listen for rewards
onClose()
Listen for Offerwall close
Page 9 — Android Configuration
Minimum SDK
Gradle requirements
JitPack
Internet permission
Common Android issues
Page 10 — iOS Configuration
CocoaPods
Deployment target
Privacy Manifest
Framework integration
Common Xcode issues
Given your recent App Store experience, this page should also include a section on Apple Privacy Manifest requirements and how to ensure the embedded framework contains a valid PrivacyInfo.xcprivacy.
Page 11 — Sandbox & Production
Explain:
Uses Sandbox
Uses Production
Include guidance on when to use each environment.
Page 12 — Best Practices
Initialize the SDK once when the app starts.
Use a stable, unique
playerId.Verify rewards using S2S postbacks.
Test thoroughly in Sandbox before switching to Production.
Keep the SDK updated to the latest release.
Page 13 — Troubleshooting
Examples:
Offerwall doesn't open
Check
appIdandsdkKey.Verify package name/bundle identifier matches the Perkox Dashboard.
No rewards
Confirm S2S postback is configured.
Ensure
playerIdis valid.
iOS build fails
Run
pod install.Verify the deployment target.
Check the embedded privacy manifest.
Page 14 — FAQ
Does the SDK support Expo?
Can I change the user after login?
How do I enable Sandbox?
How do rewards work?
Is internet access required?
Page 15 — Changelog
Maintain release notes such as:
Final recommendation
Instead of publishing only a README, build a developer portal in GitBook with these sections. It will provide a much better onboarding experience for publishers and present Perkox as a mature developer platform. You can then extend the documentation later with separate guides for Android, iOS, Flutter, Unity, REST APIs, webhooks, and server-to-server integrations.
Last updated