Bridge options
Options are passed toNativeBridge.getInstance() (or to <BridgeProvider options={...}> in React).
environment
Override automatic environment detection. Useful for testing or debugging.
channel
Inject a custom MessageChannel implementation for testing.
iframeAllowedOrigins
An allowlist of origins for incoming postMessage events. Only applies to iframe transport.
iframeTargetOrigin
The target origin for outgoing postMessage calls. Only applies to iframe transport.
window.location.origin. Set this explicitly when the parent frame is on a different origin.
Timeouts
React configuration
Pass options to<BridgeProvider>:
discoverOnMount prop controls whether discoverCapabilities() runs automatically: