TVEventHandler
Subscribe to remote control key events on TV platforms.
TV relevance: TV-specific API. Primary low-level event subscription surface for TV remote input.
Remote Events On Web TV
react-native-web-tv includes built-in TV focus navigation (LRUD) and remote input handling for browser-based TV environments.
TVEventHandler is the low-level event stream for custom handling (for example global shortcuts or app-specific Back/Menu behavior).
ℹ️ Note: Your app or host platform must register remote keys (arrow, OK/Enter, Back, Menu) so those key events reach the browser. Once key delivery is configured, no additional remote-event library is required.
For configuration and advanced usage, see the TV Navigation documentation.
TVEventHandler exposes a low-level listener API for hardware remote events.
import { TVEventHandler } from 'react-native';
const subscription = TVEventHandler.addListener((event) => {
console.log(event.eventType);
});
// Later
subscription.remove();API
Static methods
Registers a TV remote event listener and returns an EventSubscription with a remove() method.
TVRemoteEvent
Event name emitted by the remote input pipeline (for example directional press events).
Optional action value attached to the event payload.
Optional node tag associated with the current focus target.
Optional native target id associated with the event.
Optional platform-specific payload.