Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sniok committed Jan 27, 2021
1 parent af7ecb5 commit 02eaff4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@react-three/xr",
"version": "2.0.0-alpha.0",
"version": "2.0.0-alpha.1",
"description": "React components and hooks for creating VR/AR applications with react-three-fiber",
"keywords": [
"xr",
Expand Down
4 changes: 2 additions & 2 deletions src/XR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export function XR(props: { children: React.ReactNode }) {

function XRCanvas({ children, ...rest }: ContainerProps) {
return (
<Canvas vr colorManagement {...rest}>
<Canvas vr {...rest}>
<XR>
<InteractionManager>{children}</InteractionManager>
</XR>
Expand All @@ -135,7 +135,7 @@ export function VRCanvas({ children, ...rest }: ContainerProps) {
)
}

export function ARCanvas({ children, sessionInit, ...rest }: ContainerProps & { sessionInit: any }) {
export function ARCanvas({ children, sessionInit, ...rest }: ContainerProps & { sessionInit?: any }) {
return (
<XRCanvas onCreated={({ gl }) => void document.body.appendChild(ARButton.createButton(gl, sessionInit))} {...rest}>
{children}
Expand Down

0 comments on commit 02eaff4

Please sign in to comment.