---
title: "Layout"
canonical_url: "https://docs.sportradar.com/resources/audiovisual/docs/audiovisual-client-documentation/embet/react-native/react-native-layout"
markdown_url: "https://docs.sportradar.com/resources/audiovisual/docs/audiovisual-client-documentation/embet/react-native/react-native-layout.md"
last_updated: "2026-10-02T08:58:45Z"
---

# Layout

> **Concept:** [Layout and resizing](https://docs.sportradar.com/resources/audiovisual/docs/audiovisual-client-documentation/embet/features/feature-layout-resizing.md)

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

```tsx
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).
