Develop

Meta VR Layout SDK for React Native

Get from NPM
Updated: Nov 3, 2026|
Version
1.1.0
The Meta VR Layout SDK allows Android 2D app developers to easily manage their app's visual representation in the home environment. It exposes the ability to create and anchor Spatial Windows in a way that feels natural in React Native.

Version 1.1.0 Release Notes

Meta VR Layout SDK for React Native 1.1.0


This release adds more control over spatial window appearance and positioning, with new APIs for opaque background colors and exact planar offsets.

New features

  • Window background colors: Added the windowBackgroundColor prop to SpatialWindow to set an opaque background behind spatial window content, including areas exposed during resizing. When no color is specified, the window uses the app theme’s android:windowBackground.
  • Exact planar offsets: Added planeUnit: 'point' to the offset prop, enabling X and Y offsets in layout points, which map to density-independent pixels (dp) on Android. This lets spatial windows align with UI elements beyond the existing semantic offset tiers. Offsets apply relative to the parent window after anchoring and are rounded to whole dp. Depth (z) continues to use semantic tiers. Omitting planeUnit preserves the existing semantic-step behavior.