Sanniv Khare 6 min read

react-native-video 7 RC: porting an Android TV player from v6

react-native-video 7 RC: porting an Android TV player from v6

The short version: react-native-video 7.0.0-rc.0 (published 30 November 2026, after sixteen betas) is a rewrite, not an upgrade. It needs React Native 0.84 or later on the New Architecture and a new peer, react-native-nitro-modules 0.37.2 or later. The <Video> component with props becomes a VideoPlayer object made by useVideoPlayer() plus a <VideoView>. For a TV app, three things in the RC need a decision before you port: its default Media3 is 1.4.1, older than the 1.8.0 that 6.20.0 ships with; the Android focusable prop is gone; and the IMA ads, RTSP and Smooth Streaming switches no longer exist. latest on npm is still 6.20.0 (27 November); the RC sits on the next tag.

This post is a source diff: we ran npm pack on react-native-video 6.20.0 and 7.0.0-rc.0, unpacked both and compared package.json, the podspecs, android/gradle.properties, android/build.gradle, the Android manifest and the TypeScript API in src/. It is written from the release candidate; we will update it when 7.0.0 final ships.

Why we did this: BMDB.fun runs on Android TV and we build React Native TV apps for clients; react-native-video is the usual player in that stack. A player rewrite touches the screen a TV app is built around, so we read the RC before anyone writes the first line of the port.

Should you port now?

Not to production. The RC is the right time to read the diff, size the work and try it on a branch, because the API shape is settled enough for a release candidate. Before you start, check the three gates:

  • React Native 0.84 or later, New Architecture only. The peer range moved from react-native: * to >= 0.84.0, and the README states the Old Architecture is not supported.
  • Nitro Modules. react-native-nitro-modules >= 0.37.2 is a new peer dependency. The package now carries a nitro.json and a generated nitrogen/ folder, and the podspec loads nitrogen/generated/ios/ReactNativeVideo+autolinking.rb.
  • Xcode 16.4 or later for iOS builds, which the README says Nitro Modules requires.

The API: from props to a player object

v6 Video component next to the v7 useVideoPlayer and VideoView code

The same looping player in 6.20.0 and in 7.0.0-rc.0, written from the exported types of each version.

In v6, <Video> held everything: the source, playback state, events and layout. In v7, src/index.tsx exports useVideoPlayer, useEvent, VideoPlayer and VideoView, and the work splits in two. The player owns the source and playback; the view only draws it.

v6 (6.20.0) v7 (7.0.0-rc.0) Notes from the source
source={{ uri }} useVideoPlayer({ uri }) The source is immutable; change it with player.replaceSourceAsync()
paused={paused} player.play() / player.pause() Playback is imperative; read state from player.isPlaying
repeat player.loop = true Set in the useVideoPlayer setup callback or later
muted, volume, rate player.muted, player.volume, player.rate volume outside 0 to 1 is clamped, NaN ignored
playInBackground player.playInBackground Same meaning, now on the player
ref seek(t) player.seekTo(t), player.seekBy(t) Out of range is clamped
onLoad, onProgress, onEnd, onError, onBuffer useEvent(player, 'onLoad', fn) and so on Events live on the player; onStatusChange is new
resizeMode, controls <VideoView resizeMode controls> View props stay on the view
ref presentFullscreenPlayer() VideoViewRef.enterFullscreen() Plus enterPictureInPicture()
focusable (Android) none See the TV section below

useEvent subscribes once per player and event and always calls your latest callback: it uses React’s useEffectEvent on React 19.2 and later and a ref on older React, so inline callbacks do not pile up listeners on every render.

The Android side

Android gradle.properties defaults in 6.20.0 and 7.0.0-rc.0

Real output from the two unpacked packages; RNVideo_ prefix removed for width.

The Android package moved from com.brentvatne.exoplayer to the namespace com.twg.video, with folders for core, hybrids, react and view. If you have native code that reaches into the v6 classes (a custom ReactExoplayerView subclass, a patch-package diff), it has nothing to patch in v7.

Media3 goes backwards by default. 6.20.0 builds against Media3 1.8.0. The RC’s gradle.properties sets RNVideo_media3Version=1.4.1, and build.gradle uses that one version for media3-exoplayer, -common, -ui, -datasource, -datasource-okhttp, -session, and the DASH and HLS modules. Like v6, it reads the value from your root project first, so you can pin it:

// android/build.gradle (root)
buildscript {
    ext {
        media3Version = "1.8.0"
    }
}

Treat that as a decision to test, not a default to copy. The RC’s Kotlin sources are written against its own default, and Media3 changes APIs between minor versions. What we can say from the diff is that porting from 6.20.0 without an override moves your Media3 back four minor versions, and any fix you counted on from 1.5 to 1.8 goes with it.

Fewer build switches. v6 read useExoplayerIMA, useExoplayerRtsp, useExoplayerSmoothStreaming, useExoplayerDash, useExoplayerHls and buildFromMedia3Source. The RC’s build.gradle reads only useExoplayerDash and useExoplayerHls (both on by default, with stub classes when off). There is no IMA dependency anywhere in the RC, and the v6 adTagUrl and adLanguage props have no counterpart in the v7 types. An app that serves ads through IMA has no path in 7.0.0-rc.0; it stays on v6 for now.

The other defaults: minSdkVersion 24 and compileSdkVersion/targetSdkVersion 35 in both versions, Kotlin 1.9.24 instead of 1.8.0 (with a new minKotlinVersion=1.8.0), and the manifest now declares android.permission.INTERNET, which manifest merging adds to your app. A TV app streaming video has that permission already.

What a TV app loses, and what to check

Three things in the diff matter for Android TV specifically:

  1. No focusable prop. In v6, ReactExoplayerViewManager.kt exposes focusable (default true) and calls setFocusable on the player view. Nothing in the RC’s Android sources sets focusability, and VideoViewProps has no such prop. If your v6 TV screen set focusable={false} so D-pad focus stays on your own controls, plan to test focus order on a TV or an Android TV emulator after the port, and handle it in the views around VideoView.
  2. No tvOS in the podspec. The v6 podspec declared :ios => "13.0", :tvos => "13.0", :visionos => "1.0". The RC declares only :ios => min_ios_version_supported. If the same codebase ships to Apple TV through react-native-tvos, the RC does not declare that platform.
  3. No built-in ads. As above: IMA is gone with no replacement in the RC.

Runtime behaviour on TV hardware is outside this post; these are the places the source says to look first.

A porting order that keeps the app shippable

  1. Get the app onto React Native 0.84 or later with the New Architecture, still on react-native-video 6.20.0, and ship that.
  2. On a branch, add react-native-nitro-modules and react-native-video@next, and pin media3Version to what you ship today.
  3. Wrap your player screen: one component that owns useVideoPlayer, maps your old props to player properties and wires events with useEvent. Port one screen, then the rest.
  4. Test D-pad focus, background playback and error handling on a TV device or emulator.
  5. When 7.0.0 final ships, check npm view react-native-video dist-tags, re-diff against the RC and drop the Media3 pin only if the final default is at least what you ship.

For the Media3 side of a TV player, see what Media3 1.12 changes for an Android TV player; for the screens around it, Leanback to Compose for TV. The app this comes from is BMDB.fun.

Sources: react-native-video on npm, react-native-video releases, Nitro Modules minimum requirements.

Made by the team behind this post

Apps from our studio

  • Goes with this post

    BMDB.fun

    Your Bollywood world at a glance, with links straight to the OTT app that streams each film.

    Android TV · Web · Mobile

    Get
  • Nix

    The Mac uninstaller that finds what the Trash leaves behind: caches, logs, derived data and saved states.

    macOS

    Get
  • Cardigami

    Pop-up greeting cards that rise out of the fold on iPhone Duo.

    iPhone · App Store

    Get
  • OneClick QuitAll

    Quit every running app in one click. See memory and CPU first.

    macOS · Mac App Store

    Get

Need this built? Let’s talk.

We build and run apps for Mac, TV, mobile and the web, and write about what we learn.