⚛️React Native
SparkWall lives on the web, but it’s designed to give your app a seamless, native feel.
Linking
import { Linking } from 'react-native';
Linking.openURL('https://spark-wall.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://spark-wall.com/offerwall/[API_KEY]/[USER_ID]' }} />;
Make sure to substitute [API_KEY] with your actual website API key and [USER_ID] with the unique identifier of the user viewing the wall on your site.
Last updated