Skip to content

Repository files navigation

Expo Router TV demo 👋

Apple TV screen shot Android TV screen shot

This is an Expo project created with create-expo-app.

This project uses

🚀 How to use

  • cd into the project

  • TV builds:

yarn
yarn prebuild:tv # Executes Expo prebuild with TV modifications
yarn ios:tv # Build and run for Apple TV
yarn android:tv # Build and run for Android TV
  • Mobile builds:
yarn
yarn prebuild # Executes Expo prebuild with TV modifications
yarn ios # Build and run for iOS
yarn android # Build and run for Android mobile

Development

You can start developing by editing the files inside the app directory. This project uses file-based routing.

This project includes a demo showing how to use React Native TV APIs to highlight controls as the user navigates the screen with the remote control.

TV specific file extensions

This project includes an example Metro configuration that allows Metro to resolve application source files with TV-specific code, indicated by specific file extensions (*.ios.tv.tsx, *.android.tv.tsx, *.tv.tsx). The ExternalLink component makes use of this by having a separate TV source file that avoids importing packages that don't exist on Apple TV.

Get a fresh project

When you're ready, run:

npm run reset-project

This command will move the starter code to the app-example directory and create a blank app directory where you can start developing.

Learn more

To learn more about developing your project with Expo, look at the following resources:

Join the community

Join our community of developers creating universal apps.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages