Shopify / react-native-skia

High-performance React Native Graphics using Skia
https://shopify.github.io/react-native-skia
MIT License
6.98k stars 452 forks source link

feat: move test app to react-native-test-app #2746

Open Saadnajmi opened 3 days ago

Saadnajmi commented 3 days ago

TODO:

Summary

I am interested in (eventually) adding macOS support to react-native-skia. Generally the first step to this is to first move the repository's test app to React Native Test App. This repo offers a few benefits:

  1. RNTA handles the native code of an example app for you (similar to expo's continuous native generation), so you only have to worry about your apps' JS.
  2. Backwards and forwards compatibility across a few Raect Native minor versions
  3. (Most importantly) The ability to easily add support for new platforms. In this case, of the 3 extra platforms RNTA supports ( macOS, visionOS, windows), the ones I know how to port after this change are macOS and visionOS.

Notes

Test Plan

I got the iOS example app to run with the old architecture so far:

Screenshot 2024-11-18 at 9 28 08 PM
Saadnajmi commented 2 days ago

@wcandillon Could I get the workflows approved so I can start testing my changes?

wcandillon commented 2 days ago

@Saadnajmi I'm very excited about this and I will try to help as much as I can with it, however transform-inline-environment-variables cannot be dropped as we need it for CI (to open the app on the e2e test screen).

Saadnajmi commented 2 days ago

@Saadnajmi I'm very excited about this and I will try to help as much as I can with it, however transform-inline-environment-variables cannot be dropped as we need it for CI (to open the app on the e2e test screen).

Makes sense! I should have left the PR in a draft state, my apologies. I figured I'd need to add back 95% of what was dropped as I ran into their use cases :)