Creates a project that can build for Apple TV and Android TV targets.
Note: This example is still at an experimental stage, and is based on SDK 50 beta release.
This project uses
- the React Native TV fork, which supports both phone (Android and iOS) and TV (Android TV and Apple TV) targets
- the React Native TV config plugin to allow Expo prebuild to modify the project's native files for TV builds
- Create a project:
npx create-expo-app -e with-tv
cd
into the project
export EXPO_TV=1
npx expo prebuild
yarn ios # Build for Apple TV
yarn android # Build for Android TV