Skip to content

TVEventHandler is not working with react-native-view in Android #21259

Description

@TheHemantKaushik

Environment

React Native Environment Info:
System:
OS: Linux 4.15 elementary OS 0.4.1 Loki
CPU: x64 Intel(R) Core(TM) i5-2520M CPU @ 2.50GHz
Memory: 566.45 MB / 7.70 GB
Shell: 4.3.48 - /bin/bash
Binaries:
Node: 8.11.1 - ~/Work/Installations/node/bin/node
Yarn: 1.9.4 - ~/Work/Installations/node/bin/yarn
npm: 6.1.0 - ~/Work/Installations/node/bin/npm
SDKs:
Android SDK:
Build Tools: 26.0.0, 27.0.3, 28.0.0
API Levels: 19, 23, 26, 27, 28
npmPackages:
@types/react: 16.4.14 => 16.4.14
@types/react-native: 0.56.23 => 0.56.23
react: 16.5.0 => 16.5.0
react-native: v0.57.0 => 0.57.0
npmGlobalPackages:
react-native-cli: 2.0.1

Description

I am developing an app for TV's. There is an intro video screen in this app. On this screen, I am using remote "select" button to play pause video. (There is no play/pause button in some remotes eg. MI Box). I am using "TVEventHandler" class to listen remote keys and printing values in console. But there is no value in console when I press any key from remote. It is not working as expected on Android.

Reproducible Demo

I am logging events in console. You can attach debugger to check console logs.
Here is a dropbox link of demo app:
https://www.dropbox.com/s/1ch84lyo2lh5vjx/RN57.zip?dl=0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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