Skip to content

chore(Reanimated3):cherry-pick #7197 #7235

New issue

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

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

tjzel
Copy link
Collaborator

@tjzel tjzel commented Mar 12, 2025

Summary

Cherry picking #7197

Test plan

TBA

@tjzel tjzel force-pushed the @tjzel/reanimated3/cherry-pick-7197 branch from f246376 to 78ec0e0 Compare March 16, 2025 21:19
When React Native is reloaded when `WorkletsModule.installTurboModule()`
wasn't called yet we tried to invoke `invalidateCpp()` which resulted in
a nullptr exception, because hybrid data wasn't yet initialized.

I applied similar safety mechanism to all relevant code, turns out it
narrowed down only to `NativeProxy.java`.

See that App no longer crashes on `invalidateCpp()` on a double reload
on Android.
@tjzel tjzel force-pushed the @tjzel/reanimated3/cherry-pick-7197 branch from 78ec0e0 to 8ed7285 Compare March 17, 2025 09:59
@tjzel tjzel mentioned this pull request Mar 17, 2025
13 tasks
@tjzel tjzel merged commit 3b04b0a into 3.17-stable Mar 17, 2025
31 of 41 checks passed
@tjzel tjzel deleted the @tjzel/reanimated3/cherry-pick-7197 branch March 17, 2025 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants