react-native-skia: Web Animations Broken
Description
Looks like web animations are broken on the newest version. I don’t know the exact version this bug was introduced in, but I can confirm that our web animations were working in v1.7.6. As far as I can tell, this affects all Skia animations using Reanimated.
Expected: Blue square in reproduction slides back and forth. Actual: Blue square in reproduction does not move.
React Native Skia Version
1.11.4
React Native Version
React Native Web: 0.19.12
Using New Architecture
- Enabled
Steps to Reproduce
https://github.com/nathan-ahn/skia-web-animation-bug
Reproducing
- Install
yarn install - Run web
yarn web - See the blue square (Skia) not move (Pink square included to demonstrate Reanimated is working)
Notes
I usually prefer to use Expo for minimum reproducible examples but can’t until #2914 is resolved. I’m using the same Solito setup to that we use in production to get Skia web to work. I don’t believe that any of the Next.js workarounds are causing this issue, but happy to reproduce using Expo Router once #2914 is fixed.
Snack, Code Example, Screenshot, or Link to Repository
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 22 (11 by maintainers)
thanks for your support on this 🙏
Same here. Using a library like this one with the latest version of Skia 1.11.8 on the web : https://github.com/doublelam/react-native-free-canvas
The animation does not work.
Also when a rerender occur with a different
strokeproperty on my SkiaPath, I have the errorCannot read properties of undefined (reading 'Kd'). The stack :To reproduce in summary :