-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pressing the center button on Android TV Remote does not work. #80
Comments
Additional information: I did some troubleshooting. Since I was not able to use debugger, I just used good ol' toast to see if there is a registered event for center button press
And no toast is showing. Up, Down, Left and Right shows the toast message Update: seems that doing a long press actually registers ENTER. but what I need is not a long press but a short press Another update: Seems that user needs to interact with a system dialog to make the short press work. in my case when I finished asking the user to grant location, I do not need to long press anymore! |
@silencer07 I was facing this issue with hot reload only. is it the same for you or is Select never working for you? |
The center button never worked unless user interacted with a system dialog for some reason |
see this: #52 |
hi @0n3byt3, I am using expo so I modified the basically I used this snippet:
In my case I modified `withReactNativeKeyevent.js:
still, short press does not work. I still have to use long press to make the center button of remote work. up, left, right and down still works |
hello @silencer07 |
@silencer07 |
Nice! I will be trying this later on when I came back to tv development. I will report back after I tried |
I can confirm that in my case this works after following what you have suggested. in my case I will need to have a patched-package of
I will close this ticket since there is a fix on hand. Thanks |
Context: bamlab/react-tv-space-navigation#39 (comment)
Basically I am using this together with the linked library above. Seems that the center button on Android TV Remote (Is this what is called a D-pad?) is not working. Up, Down, Left and Right all works.
I am testing it against Xiaomi TV Box 2nd Gen, which has the latest Google TV installed (Based on android 12 I believe)
The text was updated successfully, but these errors were encountered: