Description
Requirements:
Please go through this checklist before opening a new issue
- Review the documentation
- Search for existing issues in: viromedia/viro & ViroCommunity/viro
- Use the latest ViroReact release
Environment
Please provide the following information about your environment:
- Development OS: Mac
- Device OS & Version: iOS 15.0.2
- Version: ViroReact 2.21.0 - React Native 0.65.1
- Device(s): iPhone Xr
Description
I'm using this wonderful library to achieve a treasure hunting: pratically, the user sees a 2D map where he is geolocated and, when he's near a treasure, start the ar mode where the app shows it as a ViroButton; clicking the button, the user can collect the treasure.
Unfortunately, the onClick method doesn't work every time and it is possible that sometimes the event does not trigger, forcing the user to exit and enter again (sometimes it works, sometimes it doesn't work - maybe some reset).
I see some similar issues in viromedia's repository, but without solutions or with some workaround valid for that repository.
I don't use last version of Viro, cause the error during installation talked in other issues.
Reproducible Demo
This is more or less my code of the ar mode, I cut the useless parts.
https://pastebin.com/0bd9cqTj
Thanks to everyone!