ReactVision / viro

ViroReact: The AR and VR library for React Native πŸ“³πŸ’™πŸ’›πŸ€πŸ’š

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'isARSupportedOnDevice' of null on RN version 0.72.6 in android device

ankittrootech123 opened this issue Β· comments

Description

I tried to run this library on RN version 0.72.6 and faced this issue in android devices but working on ios device. can you please help with the solution?

Screenshot 2023-10-30 at 1 07 19 PM

also i downgraded the react native version to 0.71.3 but still getting this type of error.. please guide me how can I solve this issue

@ankittrootech123 sorry bother you, but did you resolve this issue?

it seems okay on RN: 0.72.6 with viro: ^2.40.1
Make sure to import it correctly
import { isARSupportedOnDevice } from "@viro-community/react-viro";

As per Viro docs (IsARSupportedOnDevice) the example code snippet should be updated.