Skip to main content

Android TV Platform

Overview

  • Latest Android project
  • Kotlin Support
  • Support for Gradle 4.9

File Extension Support

Extenstions are defined via engines. Engines with androidtv support:

Requirements

Project Configuration

FeatureVersion
Gradle4.10.1
Android Gradle3.3.1
Kotlin1.3.20
Target SDK27

Run on Simulator

rnv run -p androidtv

Run on Device

rnv run -p androidtv -d

Deploy on Device

This will run production version on your device (not connected to metro bundler) You can configure each buildScheme ie -s release in your config file ./appConfigs/<YOUR_APP_CONFIG>/renative.json

rnv run -p androidtv -s release -d

Android X support

androidX is enabled by default

make sure you have this piece of script in package.json

"scripts" : {
"postinstall": "jetify"
}

Hermes support

Hermes can be enabled or disabled with "reactNativeEngine": "hermes" prop in renative.json:platforms.android.reactNativeEngine or renative.json:platforms.android.buildSchemes.[SCHEME].reactNativeEngine

Advanced

Clean and Re-build platform project

rnv run -p androidtv -r

Launch specific emulator:

rnv target launch -p androidtv -t Android_TV_720p_API_22

Android X support

androidX is enabled by default

make sure you have this piece of script in package.json

"scripts" : {
"postinstall": "jetify"
}

Hermes support

Hermes can be enabled or disabled with "reactNativeEngine": "hermes" prop in renative.json:platforms.android.reactNativeEngine or renative.json:platforms.android.buildSchemes.[SCHEME].reactNativeEngine

App Config

see: Android based config