Skip to content

ViroButton - onClick doesn't trigger #58

Open
@danieldulcettiBN

Description

@danieldulcettiBN

Requirements:

Please go through this checklist before opening a new issue

Environment

Please provide the following information about your environment:

  1. Development OS: Mac
  2. Device OS & Version: iOS 15.0.2
  3. Version: ViroReact 2.21.0 - React Native 0.65.1
  4. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions