ReactVision / viro

ViroReact: The AR and VR library for React Native 📳💙💛🤍💚
MIT License
1.41k stars 164 forks source link

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

Closed ankittrootech123 closed 9 months ago

ankittrootech123 commented 1 year ago

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

hadnet commented 10 months ago

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

ankittrootech123 commented 10 months ago

No, not yet. Thanks & regards,

Ankit Limbad React-Native Developer TRooTech Business Solutions Pvt. Ltd.

https://www.trootech.com https://www.trootech.com/

On Thu, 18 Jan 2024 at 04:49, hadnet @.***> wrote:

@ankittrootech123 https://github.com/ankittrootech123 sorry bother you, but did you resolve this issue?

— Reply to this email directly, view it on GitHub https://github.com/NativeVision/viro/issues/233#issuecomment-1897396917, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCU4JWT6X7BJAAB74TQZMRLYPBMAZAVCNFSM6AAAAAA6VRVOLSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJXGM4TMOJRG4 . You are receiving this because you were mentioned.Message ID: @.***>

Wildanzr commented 9 months ago

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.