react-native-media-console TV demo 👋
This is an Expo project created with create-expo-app.
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
- react-native-video package to play videos
- react-native-media-console for video controls
🚀 How to use
cdinto the project
yarn
yarn prebuild # Executes Expo prebuild with TV modifications
yarn ios # Build and run for Apple TV
yarn android # Build for Android TV
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.
Learn more
To learn more about developing your project with Expo, look at the following resources:
- Expo documentation: Learn fundamentals, or go into advanced topics with our guides.
- Learn Expo tutorial: Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
Join the community
Join our community of developers creating universal apps.
- Expo on GitHub: View our open source platform and contribute.
- Discord community: Chat with Expo users and ask questions.