Skip to content

r3f-xr-widgets / BlackBorderXRLayer

Function: BlackBorderXRLayer() ​

BlackBorderXRLayer(__namedParameters): Element

Defined in: src/components/BlackBorderXRLayer.tsx:33

Wraps content with a black XRLayer background that fills the entire container.

This is useful when you need a black background behind XRLayer content (like video) but can't use UIKit backgroundColor (which would occlude the XRLayer).

Uses XRLayer which automatically handles fallback rendering for non-XR sessions.

Parameters ​

__namedParameters ​

BlackBorderXRLayerProps

Returns ​

Element

Example ​

tsx
<BlackBorderXRLayer>
  <QuadVideoPlayer video={video} layerRenderOrder={0} />
</BlackBorderXRLayer>

Released under the MIT License.