Expo · Apple TV and Android TV
A TV app is a different product from a phone app that happens to share a codebase. Nothing is tapped: a remote moves focus, and the screen is designed for a sofa three metres away. Expo supports it well. Expo’s TV guide documents the setup, and React Navigation, Expo Font, Linear Gradient, Splash Screen and many other SDK libraries work unchanged.
This guide follows a real app. Atlas is an open-source travel guide whose phone app and TV app live in the same repository. The TV app (tv/) has four screens (Home with rows of destinations, a destination page with Save, Search and Saved) and was built, tested and verified on VibeView cloud devices without a Mac or a TV on the desk.

What you need
- An Expo project for TV, or Step 1 to create one
- A VibeView account and the CLI:
npm install -g vibeview && vibeview login - Nothing else on your machine: no Mac, no Xcode, no Android Studio, no TV
Every plan includes cloud build minutes and streaming minutes each month. See pricing.
One Expo project or a sibling TV project
Expo’s guide describes one project that switches between phone and TV: set EXPO_TV=1, run npx expo prebuild --clean, and the native folders become a TV project; unset it and prebuild again for the phone. That works well when the phone and TV apps share most of their screens.
Most TV apps don’t. They have their own navigation, their own layouts and their own focus rules, and they share content and logic rather than components. For those, a sibling project is simpler:
- Each app keeps its own React Native. react-native-tvos follows React Native on its own schedule. In Atlas, the phone app was already on the next Expo SDK preview while the TV app stayed on the release the fork supports. Neither waits for the other.
- No switch to forget. The TV project always builds for TV, so a phone build never comes out of it by accident, and the phone project never needs the fork.
- Shared content stays shared. Atlas keeps its destinations, photos and copy in a top-level
content/folder, and one export script writes the copies the TV app and the Roku channel need.
Keep the TV project out of any workspace the phone app belongs to. Expo’s guide notes that if one project in a monorepo targets TV, all of them should use the TV fork; a sibling outside the workspace, with its own package.json and lockfile, installs its own copy and avoids that.
Step 1: set up an Expo tvOS and Android TV project
-
Create the project. From your repository root,
npx create-expo-app@latest tv -e with-tvscaffolds an Expo app with the TV fork and the config plugin already in it, next to your phone app. The template is the one-project-that-switches kind, so the steps below make it a TV-only sibling: the override, the plugin’s TV settings, andEXPO_TVeverywhere. The same steps set up an existing project by hand. -
Point
react-nativeat the TV fork. In the TV project’spackage.json, alias the dependency to the react-native-tvos release that matches your Expo SDK (Expo’s guide shows how to match them), and add an override so every package resolves the same copy:{ "dependencies": { "expo": "~57.0.0", "react-native": "npm:react-native-tvos@0.86-stable" }, "devDependencies": { "@react-native-tvos/config-tv": "^0.1.6" }, "overrides": { "react-native": "$react-native" } }The override matters: some TV packages name an exact React Native version as a peer, and without it npm can install upstream React Native beside the fork. With one React Native in
node_modules, the app always builds against the fork. Runnpm installafterwards and commitpackage-lock.json: cloud builds install withnpm ci. -
Add the config plugin. In
app.json, add@react-native-tvos/config-tvwithisTV: true,androidTVRequired: true, and the images TV launchers need: an Android TV banner (androidTVBanner) and a 512×512 icon (androidTVIcon), and the Apple TV brand images (layered icon sizes and the top shelf). The plugin writes them into the generated projects. Setios.bundleIdentifierandandroid.packagehere too, so the app has its own id from the first build. -
Make every build a TV build. A sibling project only ever targets TV, so set
EXPO_TV=1everywhere it can run: in thestartandprebuildscripts ofpackage.json(drop the template’s separateprebuild:tvandwebscripts), in the buildenvofvibeview.json(Step 2), and as a default at the top of anapp.config.js(create one if the project has none), so a barenpx expo prebuildstill produces the TV project. -
Give every control a
testID. On tvOS it becomes the accessibility identifier, on Android TV the resource id. Atlas usestile-<slug>for tiles,nav-home,nav-searchandnav-savedfor the top bar, andbtn-savefor Save. The same ids on every platform are what let one test run on every TV later.
Step 2: build for Apple TV and Android TV in the cloud
TV schemes vary, so you write each platform’s build command once in vibeview.json. Atlas has two profiles per platform: development loads its JavaScript from Metro, and preview is a Release build with the JavaScript inside, for share links, tests and demos.
{
"defaultPlatform": "tvos",
"metroPort": 8081,
"metroCommand": "npm start",
"platforms": {
"tvos": {
"build": {
"env": { "EXPO_TV": "1" },
"profiles": {
"preview": {
"command": "npm ci && npx expo prebuild --platform ios && xcodebuild -workspace ios/Atlas.xcworkspace -scheme Atlas -configuration Release -sdk appletvsimulator -derivedDataPath ios/build CODE_SIGN_IDENTITY=-",
"artifact": "ios/build/Build/Products/Release-appletvsimulator/*.app"
}
}
}
},
"androidtv": {
"build": {
"env": { "EXPO_TV": "1" },
"profiles": {
"development": {
"command": "npm ci && npx expo prebuild --platform android --no-install && cd android && ./gradlew assembleDebug -PreactNativeArchitectures=x86,x86_64",
"artifact": "android/app/build/outputs/apk/debug/*.apk"
},
"preview": {
"command": "npm ci && npx expo prebuild --platform android --no-install && cd android && ./gradlew assembleRelease -PreactNativeArchitectures=x86,x86_64",
"artifact": "android/app/build/outputs/apk/release/*.apk"
}
}
}
}
}
}
Replace Atlas with your own workspace and scheme: prebuild names them after the app’s name, and the .xcworkspace it creates under ios/ shows the exact spelling. The tvOS command is the one Build an Apple TV app without a Mac explains step by step. Then build both TVs with one command, from Windows, Linux or macOS:
vibeview build --cloud --profile preview --platform all
The tvOS build runs on VibeView’s macOS builders against the Apple TV simulator SDK; the Android TV build carries x86 and x86_64 code, the architectures of the Android TV emulators. The first build of each platform creates the app in VibeView and writes its id into vibeview.json. The tvOS development profile is the same command in -configuration Debug, with its artifact under Debug-appletvsimulator; metroCommand is how vibeview dev starts Metro for it. On a Mac you can also run npx expo run:ios against a local Apple TV simulator, as Expo’s guide shows. For signed builds, Build an Apple TV app without a Mac has the production profiles and the submit commands. The Apple TV app goes to TestFlight and the Android TV app to a Google Play track; an Android TV .apk can also reach Fire TV through the Amazon Appstore.
Step 3: run the Expo app on a cloud Apple TV and Android TV
vibeview dev --platform tvos --standalone # the newest preview build on a cloud Apple TV
vibeview build --cloud --profile development --platform androidtv
vibeview dev --platform androidtv # that build, with Metro and Fast Refresh
The app opens on a streamed TV in your browser. Arrow keys move focus, Enter selects and Escape is Back, and the on-screen remote adds Menu and Home. With a development build, vibeview dev connects the device to Metro on your machine, so a save in your editor shows up on the TV a moment later, the same loop as on a phone.

A few patterns from Atlas worth reusing:
- Initial focus.
hasTVPreferredFocustakes effect when the prop changes. To land focus on a particular tile after a transition, set it on that tile when the transition ends. - Rows that scroll into place. react-native-tvos’s
snapToAlignment="item"on the verticalScrollView, with ascrollSnapAlign: 'start'style on each row, lets the focus engine bring the focused row to the top of the screen. Rows built withScrollViewandmapalso keep every tile in the UI tree, which helps tests. - Images on Android TV. Give bundled images an explicit width and height rather than relying on
absoluteFillalone; it keeps layout predictable on every TV. - Text input on Android TV. A focused
EditTextholds on to D-pad focus, so Atlas shows its search field as a focusable button that becomes a live input on Select, the pattern from react-native-tvos’s own TVInputDemo. - Back from the first screen. On Home, hand the Menu key back to tvOS (
TVEventControl) so Back leaves the app, as viewers expect.
Test tvOS focus navigation and Test Android TV D-pad navigation walk through checking each of these by hand, using the Atlas screens.

One test, every TV
Because the ids match, a test written once runs on every TV. On the Apple TV app’s Tests page, click New test and write the flow with what to check. For Atlas it is: “Open Kyoto, select Save, go back, move to the Saved tab, then check that Kyoto is listed there”. Pick an Apple TV and click Run it now.
The first run is done by the AI. A passing run saves each press with the element it landed on, so later runs replay it and the AI only looks at the end to check the result.
Then link the Apple TV and Android TV apps as one product from the app page (Same app on other platforms), and in the Run dialog pick an Android TV. The same test runs there unchanged, and Android TV learns its own path on its first passing run. Each Select finds its element (tile-kyoto, btn-save) and confirms focus landed on it before pressing, so the test follows the app rather than the screen it was learned on. In Smart mode, a step whose screen no longer matches is handed to AI instead of failing outright.
The Atlas test passes on Apple TV, Android TV and Roku. That last one is not an Expo app at all.
And Roku
Expo and React Native don’t target Roku; Roku channels are written in BrightScript and SceneGraph. Atlas handles Roku the same way as the TV app: another sibling, roku/, with the same four screens, generated from the same content/ folder, and SceneGraph node ids that match the Expo app’s testIDs. Upload it from roku/ with vibeview build --platform roku, link it to the same product, and the Apple TV test runs on a Roku too.

To start a channel of your own, see Test a Roku channel in your browser, and An AI agent built a Roku channel for the live reload loop.
Frequently asked questions
Can Expo build Apple TV and Android TV apps?
Yes. With react-native-tvos as the react-native dependency and the
@react-native-tvos/config-tv plugin, expo prebuild generates a tvOS and an Android TV
project. Expo documents the setup in its TV guide.
Should the TV app be in the same Expo project as the phone app?
It can be, and Expo’s guide shows how to switch with EXPO_TV. A sibling project with its own
package.json is easier when the TV app has its own screens, and it lets the phone app move to
a new Expo SDK without waiting for the TV fork.
Does Expo Go work on Apple TV or Android TV?
No. TV apps run as development builds, which vibeview dev connects to Metro for Fast Refresh,
or as Release builds with the JavaScript inside.
Which Expo packages work on tvOS and Android TV?
Expo’s TV guide lists the SDK libraries that work on TV, among them Font, Image, Linear Gradient, Splash Screen, SecureStore, SQLite and Video. React Navigation works too; Atlas uses it, and Expo also publishes a TV example built on Expo Router. Check a third-party library in the React Native Directory before you depend on it.
Can I see the full project?
Yes. Atlas is open source at github.com/vibeview/atlas: the phone app at the root, the Expo TV
app in tv/ and the Roku channel in roku/.
Next steps
- Build an Apple TV app without a Mac: production profiles, signing, TestFlight and Google Play
- TV testing: remote controls, replay and AI tests on every TV platform
- Live development: the Metro loop for your React Native app on a cloud device
- An AI agent shipped an Apple TV and Android TV app: the same platforms, built end to end by a coding agent
Related guides
In the documentation
Try it yourself
Open a live iOS simulator, Android emulator, Apple TV, Android TV or Roku in your browser.
Start free