React Native

If you are looking to integrate the offerwall into your React Native app, either open the offerwall in the default browser of the user with the Linking-API or use react-native-webview to show the offerwall inside your app.

Linking

import { Linking } from 'react-native';
Linking.openURL('https://revtoo.com/offerwall/[API_KEY]/[USER_ID]');

React Native WebView

/*
  Add react-native-webview to your dependencies. Using Yarn:
	yarn add react-native-webview
  Using npm:
	npm install --save react-native-webview
  Using Expo:
	npx expo install react-native-webview
*/
import { WebView } from 'react-native-webview';
return <WebView source={{ uri: 'https://revtoo.com/offerwall/[API_KEY]/[USER_ID]' }} />;

Replace [API_KEY] with your website API key and [USER_ID] by the unique identifier code of the user of your site who is viewing the wall.

Last updated