Android TV Touchables #17966
Labels
Platform: Android
Android applications.
Ran Commands
One of our bots successfully processed a command.
Resolution: Fixed
A PR that fixes this issue has been merged.
Resolution: Locked
This issue was locked by the bot.
Resolution: PR Submitted
A pull request with a fix has been provided.
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: macOS High Sierra 10.13.3
Node: 8.9.4
Yarn: 1.3.2
npm: 5.6.0
Watchman: Not Found
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003
Packages: (wanted => installed)
react: 16.2.0 => 16.2.0
react-native: 0.53.0 => 0.53.0
Target Platform: AndroidTV
Steps to Reproduce
(Write your steps here:)
Expected Behavior
According to the React Native documentations, it states:
and
However, it does not work as stated.
Need to either update the documentations or fix the behavior.
Actual Behavior
Touchable are not being highlighted and cannot be interacted with.
This works fine with AppleTV's tvOS.
This also works with NativeScript on AndroidTV.
Current Workaround (for my case)
Currently, I've implemented custom abstraction layer for buttons with an isSelected attribute.
I am manually navigating through the 'selected' buttons by using the react-native-keyevent library from Kevine John and if the isSelected attribute is true, setting the opacity higher and manually calling the function when the 'enter/select' key is pressed.
However, this is not optimal and I believe that a native implementation is very possible.
The text was updated successfully, but these errors were encountered: