Embedded
Concept: Betslip
Use the SDK betslip UI inside the WebView overlay and settle bets in onPlaceBet on EmbetOverlay. Omit mode or set mode: 'INTERNAL' in configureBetSlip.
Parameter and return-value reference: Betslip (feature).
const overlayRef = useRef<EmbetOverlayRef>(null);
<EmbetOverlay
ref={overlayRef}
clientId="YOUR_CLIENT_ID"
customId="YOUR_EVENT_ID"
sdkVersion="1.4.0"
onInitialized={() => {
overlayRef.current?.configureBetSlip({
currency: '€',
currencyDisplay: 'prefix',
decimalSign: ',',
maxAmount: 1000,
});
}}
onPlaceBet={async (payload) => {
const accepted = await placeBetWithYourSportsbook(payload);
return accepted ? { success: true } : { error: 'undefined' };
}}
/>Do not pass onPlaceBet inside configureBetSlip — the React Native bridge wires it from the component prop.
End-to-end sample: Recipe — Embedded betslip.
Updated 25 days ago
