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.0.0 Release Notes
New Features
Introduced the Meta VR Layout SDK for React Native to optimize panel apps and leverage spatial and VR capabilities. The SDK allows developers to create and anchor Spatial Windows, build multi-layer spatial layouts, and enhance user experience. Get started with the Meta VR Layout SDK
Added support for declaring additional windows alongside the main panel using <SpatialWindow>, enabling more flexible and dynamic layouts. Spatial Window guide
Introduced anchoring and sizing features for Spatial Windows, allowing for declarative placement using anchor, windowWidth, and windowHeight. Window modifiers reference
Implemented priority to manage window placement when the scene cannot accommodate all declared windows at once, ensuring that high-priority windows are displayed. Priority and preemption
Added fallback strategies (Inline and drop) for windows that cannot be placed immediately, allowing for graceful degradation and automatic promotion when a slot becomes available. Fallback strategy
Ensured compatibility with other platforms by using <SpatialSceneProvider>, which renders content as ordinary React Native views on unsupported platforms. Compatibility mode