Reference: EmbetOverlay properties (
htmlUrl)
By default, EmbetOverlay loads a bundled HTML page from @livelike/embet-rn (no extra hosting). The emBET Web SDK script still loads from unpkg, controlled by sdkVersion.
Host your own page when you need custom loading or error UI, extra styles, a pinned bridge build, or CDN policies that require all WebView assets on your domain. The page must include the bridge script and call EmbetBridge.init() — same protocol as the SDK’s default page (embet-rn-sdk src/html/).
Serve a static HTML file from your CDN or web server. Pin @livelike/embet-rn to the same major/minor version you use in the app.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>emBET</title>
<style>
body { margin: 0; font-family: system-ui, sans-serif; }
.embet-loading { display: flex; align-items: center;
You can self-host bridge.umd.min.js instead of unpkg — copy it from node_modules/@livelike/embet-rn/dist/ or use the package export @livelike/embet-rn/bridge.min.
ℹ️ Without
EmbetBridge.init(),EmbetOverlaycannot exchangepostMessagetraffic with the WebView. Props, ref methods, and callbacks behave the same as with bundled HTML.
npm install @livelike/embet-rn react-native-webviewimport { useRef } from 'react';
import { View, StyleSheet } from 'react-native';
import { EmbetOverlay, type EmbetOverlayRef } from '@livelike/embet-rn';
const CLIENT_ID = 'YOUR_CLIENT_ID';
const EVENT_ID =
For sportsbook bet placement on top of this setup, add onPlaceBet and configureBetSlip as in Embedded betslip.
| Requirement | Notes |
|---|---|
<embet-overlay> in the page | Required host element for the Web SDK |
Bridge script + EmbetBridge.init() | Matches the default SDK HTML behavior |
| HTTPS URL (production) | WebView and CDN best practice |
| CORS / cache headers | Allow your app builds to load the HTML and scripts |
| Version alignment | Keep @livelike/embet-rn in the app and bridge script URL in sync |