Type annotations are not supported in __workletClass #6642
Labels
Missing repro
This issue need minimum repro scenario
Platform: Android
This issue is specific to Android
Platform: iOS
This issue is specific to iOS
Description
A class that has the __workletClass annotation doesn't support any kind of type annotations.
The following works:
But the following wouldn't:
or
Steps to reproduce
Add a type annotation to a class that has the __workletClass property. Adding a type annotations to https://github.com/software-mansion/react-native-reanimated/blob/main/apps/common-app/src/examples/RuntimeTests/tests/plugin/fileWorkletization.ts should be enough to reproduce the issue.
Snack or a link to a repository
https://github.com/shopify/react-native-skia
Reanimated version
3.5.1
React Native version
0.75.2
Platforms
Android, iOS
JavaScript runtime
Hermes
Workflow
React Native
Architecture
Paper (Old Architecture)
Build type
Debug app & dev bundle
Device
iOS simulator
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: