How to use the @aws-amplify/xr.configure function in @aws-amplify/xr

To help you get started, we’ve selected a few @aws-amplify/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 aws-amplify / amplify-js / packages / amplify-ui-components / src / components / amplify-examples / amplify-examples.tsx View on Github external
import { Component, State, h } from '@stencil/core';
import { AuthenticatorExample } from './authenticator-example';
import example4 from './example4';
import sceneExample from './scene-example';
import Auth from '@aws-amplify/auth';
import XR from '@aws-amplify/xr';
import awsexports from './src/aws-exports';

Auth.configure(awsexports);
XR.configure(awsexports);

const examples = [AuthenticatorExample, example4, sceneExample];

(window as any).LOG_LEVEL = 'DEBUG';

const Tabs = ({ active, set }) => (
  <ul>
    {examples.map(({ title }, index) =&gt; (
      <li class="{active">
        <a> set(index)} href="javascript:void(0);"&gt;
          {title}
        </a>
      </li>
    ))}
  </ul>
);
github aws-amplify / amplify-js / packages / amplify-ui-components / src / components / amplify-examples / scene-example.tsx View on Github external
import { h } from '@stencil/core';
import Auth from '@aws-amplify/auth';
import XR from '@aws-amplify/xr';
import awsexports from './src/aws-exports';

Auth.configure(awsexports);
XR.configure(awsexports);

const sceneExample = () =&gt; ;

export default {
  title: 'Scene example',
  Content: sceneExample,
};