Skip to content

react-native-tvos/SkiaMultiplatform

Repository files navigation

Skia multiplatform demo 👋

This is an Expo project created with create-expo-app, and can be built for web, mobile devices (iOS, iPadOS, and Android), and TV devices (Apple TV, Android TV).

You can see the web version at

https://skiamultiplatform.expo.app/

This project uses

This app includes the following demos from the react-native-skia examples:

  • Breathe
  • Glassmorphism
  • Reanimated

For mobile and TV, this app includes the following demos from the victory-native examples:

  • Line Chart
  • Bar Chart

The demos have been slightly modified to render and size correctly on TV, and resize correctly on iPad screen rotations.

🚀 How to use

  • cd into the project

  • Build for mobile devices (including iPad tablet support)

yarn
yarn prebuild # Executes a clean Expo prebuild to generate iOS and Android native files
yarn ios # Build and run for iOS
yarn android # Build and run for Android
  • Build for TV devices
yarn
yarn prebuild:tv # Executes a clean Expo prebuild to generate tvOS and Android TV native files
yarn ios # Build and run for Apple TV
yarn android # Build and run for Android TV
  • Web (local development)
yarn
yarn web # Runs the web app as a local development server on port 8081
  • Web (deploy to EAS hosting)
yarn
eas init
yarn build:web # Build the web deployment bundle
yarn deploy:web # Deploy to the EAS hosting dev environment

NOTE: Setting the environment variable EXPO_TV=1 enables the @react-native-tvos/config-tv plugin to modify the project for TV. This can also be done by setting the parameter isTV to true in the app.json.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published