Skip to content

Android APP cannot correctly receive click event #346

@CacaoRick

Description

@CacaoRick

Description

I am working on a small game in react-native.

After completing development on iOS, I built the Android version for testing but found that the click event did not respond as expected, causing the game functions to malfunction.

I tried creating a minimal reproducible project but still encountered the issue, so I am reporting the problem.

Minimal repro

https://github.com/CacaoRick/rive-click-issue/tree/click-event

Source .riv/.rev file

https://rive.app/community/files/21402-40196-click-event/

.riv
.rev

Expected behavior

Android APP should work like iOS and Web:

When click left grey rectangle, trigger click listener then report on-click event and trigger clicked input state

The timeline will temporarily display the click text in red based on the clicked trigger.

(I use onRiveEventReceived and onError to display the received events below.)

Screen record

Image
https://youtu.be/mWXsihx27X4

Device & Versions

  • Device:
    • Android Emulator, Android 15
    • Samsung Galaxy S21 Ultra 5G, Android 14
    • Samsung Galaxy Z Fold3 5G, Android 13
  • NPM Version: 11.4.2
  • React Native: 0.79.4
  • expo: 53.0.12
  • rive-react-native: 9.3.4

Additional context

Have an error {type: "DataBindingError", message: "No default ViewModel found for artboard Artboard"} only show on Android, However, I did not use the data binding feature in this file, so I am not sure if it is related.
I added an empty View Model, and the Android error message disappeared, but the problem remains; I still cannot click to trigger the event. Also, my original project uses data binding and has the same issue, so I conclude that the error message is unrelated to this issue.

If you need any information, please let me know. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions