Layout

Concept: Layout and resizing

Give EmbetOverlay a flex parent or explicit dimensions. For automatic Web overlay scaling inside the WebView, call configureResize on an EmbetOverlay ref after onInitialized.

const overlayRef = useRef<EmbetOverlayRef>(null);

const onInitialized = () => {
  overlayRef.current?.configureResize({
    enabled: true,
    hostElement: 'body',
  });
};

return (
  <View style={{ flex: 1 }}>
    <EmbetOverlay ref={overlayRef} onInitialized={onInitialized} /* ... */ />
  </View>
);

Reference size, hostElement behavior, and desktop guidance are on the concept page. Use hostElement when the visible player area is not the full WebView document (for example a dedicated container in your hosted bridge HTML).