Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
Data displayReact Native

Media viewport

Inspect media with controlled bounded zoom, pan and fit.

Public APILumenMediaViewportReact Native

Native example

Use Media viewport

Applications own media loading, edits, selection, persistence and task lifetimes. Compose localized LumenButton move actions beside thumbnails. See the Studio media workspace guide for exact adapter contracts and supported Apple form factors.

View captured React Native example
Media viewport rendered in the Expo web renderer Lumen playground
Captured exampleExpo web renderer
tsx
<LumenMediaViewport label="Inspect photo" value={viewport} onValueChange={setViewport}><Image source={photo} /></LumenMediaViewport>

Reference

Public API

The primary shared and platform-specific options exposed by LumenMediaViewport.

APIValues or typeDefaultDescription
label / contentString / native contentRequiredNames the media surface and provides application-owned content.

Native behavior

Design and accessibility

When to use it

Applications own media loading, edits, selection, persistence and task lifetimes. Compose localized LumenButton move actions beside thumbnails. See the Studio media workspace guide for exact adapter contracts and supported Apple form factors.

Accessibility

Localized zoom and visible actions complement native gestures.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives