We provide a helpful utility module isARSupportedOnDevice to enable our developers to check their app users' device for compatibility to support their AR experiences conditionally. This way app developers can check and render appropriate views depending on whether the device is supported by the underlying AR system.

async isARSupportedOnDevice()

Example Use:

To take advantage of this utility, simply import ViroUtils on top of your scene and create an alias to the function like below:

import {  ViroUtils } from '@reactvision/react-viro';

try {
  const result = await isARSupportedOnDevice();
} catch (err) {