Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
xrSupported={xrSupported}
xrSession={xrSession}
onSelectSession={this._onLauncherSelect}
/>
const contextValue = {
worldFacade: WorldXRFacade,
worldProps: {
xrSession,
xrSessionMode,
xrReferenceSpace,
xrReferenceSpaceType
}
}
return React.createElement(Canvas3D.contextType.Provider, {value: contextValue},
React.createElement(
ReactClass,
utils.assign({}, props, {
xrSupported,
xrSupportedSessionModes,
xrSession,
xrSessionMode,
xrReferenceSpace,
xrReferenceSpaceType,
xrLauncher
}),
props.children
)
)
}
}
const VrButtonImpl = options.buttonRenderer
const vrButton =
const contextValue = {
worldFacade: WorldVrFacade,
worldProps: { vrDisplay },
onCanvasRef: this._registerVrCanvas,
canvasStyle: vrDisplay ? vrCanvasStyles[options.screenViewEye] : null
}
return React.createElement(Canvas3D.contextType.Provider, {value: contextValue},
React.createElement(
BaseReactComponent,
utils.assign({}, props, {
vrAvailable,
vrDisplay,
vrButton
}),
props.children
)
)
}
}