We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enabling support on the web for Reanimated without using a Babel plugin could help users who are using SWC (or other tooling) but would like to use this library.
I am going to need to patch this package regardless, so I would be happy to do a PR and get this into 5.0.0 (I'm on an alpha branch as it is).
patch
5.0.0
In order to use Reanimated without a Babel/SWC plugin, you need to explicitly pass the dependency array whenever you use a Reanimated hook.
We would need to add dependency arrays to anywhere in the codebase where they don't exist to these hooks:
Passing a dependency array is valid on both Web and native. Adding them will not negatively impact iOS or Android.
const sv = useSharedValue(0); const dv = useDerivedValue( () => sv.value + 1, [sv] // dependency array here );
The text was updated successfully, but these errors were encountered:
gorhom
No branches or pull requests
Feature Request
Enabling support on the web for Reanimated without using a Babel plugin could help users who are using SWC (or other tooling) but would like to use this library.
I am going to need to
patch
this package regardless, so I would be happy to do a PR and get this into5.0.0
(I'm on an alpha branch as it is).Why it is needed
Possible implementation
We would need to add dependency arrays to anywhere in the codebase where they don't exist to these hooks:
Code sample
The text was updated successfully, but these errors were encountered: