Android TV Platform
|
|

Overview
- Latest Android project
- Kotlin Support
- Support for Gradle 4.9
File Extension Support
| Extension | Type | Priority |
|---|---|---|
androidtv.tv.jsx | form factor | 1 |
androidtv.tv.js | form factor | 2 |
androidtv.tv.tsx | form factor | 3 |
androidtv.tv.ts | form factor | 4 |
tv.jsx | form factor | 5 |
tv.js | form factor | 6 |
tv.tsx | form factor | 7 |
tv.ts | form factor | 8 |
androidtv.jsx | platform | 9 |
androidtv.js | platform | 10 |
androidtv.tsx | platform | 11 |
androidtv.ts | platform | 12 |
android.jsx | platform | 13 |
android.js | platform | 14 |
android.tsx | platform | 15 |
android.ts | platform | 16 |
tv.native.jsx | fallback | 17 |
tv.native.js | fallback | 18 |
tv.native.tsx | fallback | 19 |
tv.native.ts | fallback | 20 |
native.jsx | fallback | 21 |
native.js | fallback | 22 |
native.tsx | fallback | 23 |
native.ts | fallback | 24 |
jsx | fallback | 25 |
js | fallback | 26 |
json | fallback | 27 |
wasm | fallback | 28 |
tsx | fallback | 29 |
ts | fallback | 30 |
Requirements
- Android Studio for Android development
- Android SDK
23.0.1or newer for Android development
Project Configuration
| Feature | Version |
|---|---|
| Gradle | 4.10.1 |
| Android Gradle | 3.3.1 |
| Kotlin | 1.3.20 |
| Target SDK | 27 |
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 enableHermes prop in renative.json:platforms.androidtv.enableHermes
or renative.json:platforms.androidtv.buildSchemes.[SCHEME].enableHermes
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 enableHermes prop in renative.json:platforms.androidtv.enableHermes
or renative.json:platforms.androidtv.buildSchemes.[SCHEME].enableHermes
