Skip to content
  • Android
  • iOS
  • Web

Platform View

Embed platform-rendered content in an engine surface.

Engine API NPlatformViewnayan-ui/components

Live examples

The child is rendered by the host platform. Supply a web element on React or a React Native view on native.

Example.tsx

Attributes

NPlatformView attributes
NameTypeDefaultDetails
childrenReactNodeOptional
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
styleComponentStylePropOptional
accessibilityLabelstringOptional

Tags