Skip to main content
string
Name used to resolve the native component from the host app’s component registry.
Record<string, any>
Props passed to the native component by the web renderer. On iOS and Android, the native component receives the props and children of the component that contains the Placeholder instead.
string
Display title shown in the web preview.
Platform[]
Platforms where the native component is available. Options: "iOS", "macOS", "watchOS", "tvOS", "visionOS", "web", "android".
Component[]
required
Fallback content that the web renderer displays when no native component resolves. iOS and Android do not render these children; they draw a gray rounded rectangle instead.

Support

Usage

Basic placeholder with fallback

Platform-specific component

With passed props

Notes

  • The host app registers native views by name. At runtime, if a component matching name is found in the registry, it renders natively. Otherwise, iOS and Android draw a gray rounded rectangle, and the web renderer displays the children.
  • On the web preview in the Composer, the title is displayed to identify the placeholder.

See Also

  • Image — image display
  • Video — video playback