React Native Web for TV

React Native Web for TV

React Native Web for TV is an extension of React Native Web with TV-specific components, focus APIs, and remote event handling for browser-based TV platforms.

  • TV navigation primitives. Build 10-foot experiences with TVFocusGuideView, spatial focus, and explicit directional navigation props.
  • Remote control events. Handle TV remote actions with TVEventHandler, TVEventControl, and useTVEventHandler.
  • Web-first TV targets. Run React Native UI patterns on browser-based TV environments while preserving web interoperability.
  • Accessible HTML. Support different devices and input modes, render semantic tags.
  • Remote Control interactions. Support LRUD configurable navigation.
  • Reliable styles. Rely on scoped styles and automatic vendor-prefixing. Support RTL layouts.
  • Responsive containers. Respond to element resize events.
  • Incremental adoption. Interoperates with existing React DOM components. Bundle only what you use.

TV highlights

Use the TV docs to migrate patterns from React Native tvOS while targeting web-based TV platforms.

Try it out!

You can try React Native Web for TV from your browser using the official template on CodeSandbox.

For TV Examples: LRUD navigation is already enabled in this sandbox. Use your keyboard arrow keys to move focus.

Fork the template and create your own app without leaving the browser.

Did you know? React Native for Web powers web support in multi-platform React tools like Expo, React Native Elements, React Native Paper, and NativeBase.

React Native Web for TVPortions Copyright © Nicolas Gallagher, Meta Platforms, Inc., Facebook, Inc. and affiliates, and other contributors as noted in file headers and THIRD_PARTY_NOTICES.md. Modifications and TV extensions Copyright © Harpreet Singh and contributors.