How to use the troika-xr.ReactXRAware function in troika-xr

To help you get started, we’ve selected a few troika-xr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github protectwise / troika / packages / troika-examples / index.js View on Github external
{ ExampleCmp ?
            (bodyWidth && bodyHeight ?  : null) :
            `Unknown example: ${selectedExampleId}`
          }
        
      
    )
  }
}

ExamplesApp = ReactXRAware(ExamplesApp, {
  // For now, none of the examples make use of floor-relative tracking, so let's just
  // limit it to a 'local' space to make it easier to keep things at eye height.
  // TODO: figure out a good approach for floor-relative tracking for any future
  //  examples that make use of it.
  referenceSpaces: ['local']
})

ReactDOM.render(, document.getElementById('app'))

troika-xr

Troika XR

MIT
Latest version published 10 days ago

Package Health Score

73 / 100
Full package analysis

Popular troika-xr functions