Offerwall SDK for React Native
Integrate the RewardingHub offerwall in your React Native app in under 5 minutes. Full documentation with code examples.
Quick Install
npm install @rewardinghub/react-native-sdkPackage manager: npm
Requirements
React Native 0.70+. TypeScript 4.5+. Android and iOS.
Initialization
import { RewardingHub } from '@rewardinghub/react-native-sdk';
// Initialize in your App.tsx
useEffect(() => {
RewardingHub.init('YOUR_APP_ID', 'YOUR_API_KEY');
}, []);Usage
// Show the offerwall
await RewardingHub.showOfferwall(userId);
// Listen for rewards
RewardingHub.onReward((reward) => {
console.log(`Earned ${reward.amount} ${reward.currency}`);
});
// Check availability
const available = await RewardingHub.isAvailable();Next Steps
- Set up server-to-server postbacks for secure reward delivery
- Explore the dashboard to monitor performance
- Read best practices for offerwall placement and timing
- Full API reference for advanced features
Frequently Asked Questions
How long does React Native SDK integration take?
Most developers complete the React Native integration in under 5 minutes. The SDK handles UI rendering and offer management automatically.
Is the React Native SDK free?
Yes. The SDK is completely free for publishers. We operate on a 70% revenue share model.
What are the minimum requirements?
React Native 0.70+. TypeScript 4.5+. Android and iOS.
Ready to Integrate?
Get your API key and start earning revenue from your React Native app today.