This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
RNHostView
A cross-platform component for hosting React Native views inside @expo/ui views.
Hosts a React Native view subtree inside a universal @expo/ui layout. On Android and iOS, it re-exports the platform-native RNHostView for Jetpack Compose/RNHostView for SwiftUI, so React Native children bridge into the surrounding Compose/SwiftUI tree. On web, there is no native host tree to bridge into, so it falls back to a React Native View that wraps the children.
Installation
If you are installing this in an existing React Native app, make sure to install expo in your project.
Usage
Basic usage
Place a React Native view subtree anywhere inside a universal @expo/ui layout.
Fill parent vs. match child
By default RNHostView fills its native parent. Set matchContents to have it shrink to fit its React Native children instead.
API
import { RNHostView } from '@expo/ui';
No API data file found, sorry!