From 20e4123b15d1dab8f9c1dcdd1007f2a84f68b846 Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Thu, 27 Jun 2024 18:13:11 +0200 Subject: [PATCH] Create react-native-reanimated patch to skip ReanimatedCommitMarker assertion --- ...ative-reanimated+3.8.1+003+fix-strict-mode.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/patches/react-native-reanimated+3.8.1+003+fix-strict-mode.patch b/patches/react-native-reanimated+3.8.1+003+fix-strict-mode.patch index e36d2dd365c0..ccc208062d10 100644 --- a/patches/react-native-reanimated+3.8.1+003+fix-strict-mode.patch +++ b/patches/react-native-reanimated+3.8.1+003+fix-strict-mode.patch @@ -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