Skip to main content
Direct node integration lets you build the native UI tree without React. Use it when integrating another renderer or when you need explicit control over node creation and mutation.

Create a root

UIContainer

RootNode creates a UIContainer with these operations:

UINode

Detach nodes from their parent before disposing them.

Node types

The React integration supports the nodes listed in the Nodes reference. The bottomSheet and gestureDetector nodes are experimental. The direct-node API does not add intrinsic JSX nodes that are absent from the React declaration surface.

Direct-node guidance

  • Keep all mutations on the runtime’s UI execution path.
  • Pass the previous props when removing properties that disappeared from a render pass.
  • Detach children before tearing down a subtree.
  • Prefer React UI for new components unless direct reconciliation is a requirement.