A versatile TV app developed in React Native, compatible with Android TV, Fire TV, tvOS, and Web. This sample project showcases best practices for TV app UI design and implementation.
Before you begin, ensure you have the following installed:
Clone the repository:
git clone https://github.com/amazonappdev/react-native-multi-tv-app-sample.git
Navigate to the project directory:
cd react-native-multi-tv-app-sample
Install dependencies:
npm install --legacy-peer-deps
Prebuild the native project optimized for TV:
export EXPO_TV=1; npx expo prebuild
npx expo run:android --device <Your Device or Emulator>
to build and install the app.npx expo run:ios
to build and install the app on the tvOS Simulator.Run npx expo start --web
to start the app in your default web browser.
Run npx expo export -p web
if you want to build the app for web. After a successful build all the needed files for web will be in the dist
directory
./components/CustomDrawerContent.tsx
to customize the left-side menu../app/(drawer)/index.tsx
to change the layout or style of the content cards../app/details.tsx
for different content details display options../app/player.tsx
to customize the Video Player ScreenStay Tuned for more!
If you found a bug or want to suggest a new [feature/use case/sample], please file an issue.
If you have questions, comments, or need help with code, we're here to help:
Sign up to stay updated with the developer newsletter.
This project is licensed under the MIT-0 License.
Happy coding! π We hope this sample helps you create amazing TV experiences across multiple platforms!