Skip to content

Commit

Permalink
Create react-native-reanimated patch to skip ReanimatedCommitMarker a…
Browse files Browse the repository at this point in the history
…ssertion
  • Loading branch information
mountiny committed Jun 27, 2024
1 parent ecb2000 commit 20e4123
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions patches/react-native-reanimated+3.8.1+003+fix-strict-mode.patch
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
diff --git a/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedCommitMarker.cpp b/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedCommitMarker.cpp
index 3404e89..b545cb6 100644
--- a/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedCommitMarker.cpp
+++ b/node_modules/react-native-reanimated/Common/cpp/Fabric/ReanimatedCommitMarker.cpp
@@ -9,7 +9,7 @@ namespace reanimated {
thread_local bool ReanimatedCommitMarker::reanimatedCommitFlag_{false};

ReanimatedCommitMarker::ReanimatedCommitMarker() {
- react_native_assert(reanimatedCommitFlag_ != true);
+ // react_native_assert(reanimatedCommitFlag_ != true);
reanimatedCommitFlag_ = true;
}

diff --git a/node_modules/react-native-reanimated/lib/module/reanimated2/UpdateProps.js b/node_modules/react-native-reanimated/lib/module/reanimated2/UpdateProps.js
index e69c581..78b7034 100644
--- a/node_modules/react-native-reanimated/lib/module/reanimated2/UpdateProps.js
Expand Down

0 comments on commit 20e4123

Please sign in to comment.