Enable3
WebsiteCommunity
  • 🚀getting started
    • What is Enable3?
    • Register and Log In
    • Admin Panel (Enable3 Account)
    • Basic Setup
  • 🪄HOW IT WORKS
    • Missions
    • Rewards & Redeem
    • Hold to Earn
    • Tap to Earn
    • Referral program
    • Web3 loyalty
  • ⚙️TECH
    • Integration
      • SDK
      • WebView
    • Endpoints
    • Callback
  • 🔵WEB3
    • Mechanics
    • Tokenomics
Powered by GitBook
On this page
  • React Native
  • Android
  • iOS
  1. TECH
  2. Integration

WebView

Once you will receive widget URL, you can show it in your app in webview

Last updated 2 months ago

React Native

Once you will have widget URL from - you can use library for opening it in the WebView.

If a 401 error is returned in the mobile application when opening the URL in the WebView (that is, the token has expired), repeat this request to get a new URL.

import React, { Component } from 'react';
import { StyleSheet, Text, View } from 'react-native';
import { WebView } from 'react-native-webview';

// ...
const MyWebComponent = () => {
  return <WebView source={{ uri: 'https://app.enable3.io/?token=xxx' }} style={{ flex: 1 }} />;
}

Android

Documentation coming soon

iOS

Documentation coming soon

⚙️
this endpoint
React Native WebView