Skip to content

Commit

Permalink
Merge pull request #57107 from software-mansion-labs/jnowakow/fix-cra…
Browse files Browse the repository at this point in the history
…shed-caused-by-worklets

[CP Staging] Fix Android reanimated worklets crash.

(cherry picked from commit fd40dcc)

(CP triggered by luacmartins)
  • Loading branch information
luacmartins authored and OSBotify committed Feb 19, 2025
1 parent ebeb475 commit cd092f1
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp b/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp
index 08d65fe..68d41c9 100644
--- a/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp
+++ b/node_modules/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp
@@ -244,7 +244,7 @@ jsi::Value NativeReanimatedModule::createWorkletRuntime(
jsQueue_,
jsScheduler_,
name.asString(rt).utf8(rt),
- false /* supportsLocking */,
+ true /* supportsLocking */,
valueUnpackerCode_);
auto initializerShareable = extractShareableOrThrow<ShareableWorklet>(
rt, initializer, "[Reanimated] Initializer must be a worklet.");

0 comments on commit cd092f1

Please sign in to comment.