Skip to main content

FireTV Platform

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

File Extension Support

Extenstions are defined via engines. Engines with firetv support:


Requirements


Project Configuration

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

Run on Simulator

rnv run -p firetv

Run on Device

rnv run -p firetv -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 firetv -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 firetv -r

Launch specific emulator:

rnv target launch -p firetv -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