From 0832b1187238cedb5b776c1ef0e7d8eb8d49a0fd Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Thu, 9 Jan 2025 07:57:38 +0100 Subject: [PATCH] Remove `shouldYield` commit option (#6876) This PR removes `shouldYield` commit option that was used in `ShadowTree::commit` in `ReanimatedModuleProxy::performOperations`. The reason for the change is that `shouldYield` commit option has been removed in RN 0.77 in https://github.com/facebook/react-native/pull/47191. --- .../cpp/reanimated/NativeModules/NativeReanimatedModule.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp b/packages/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp index 673ebd1e7ccd..83fda8255c00 100644 --- a/packages/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp +++ b/packages/react-native-reanimated/Common/cpp/reanimated/NativeModules/NativeReanimatedModule.cpp @@ -770,10 +770,7 @@ void NativeReanimatedModule::performOperations() { }, {/* .enableStateReconciliation = */ false, - /* .mountSynchronously = */ true, - /* .shouldYield = */ [this]() { - return propsRegistry_->shouldReanimatedSkipCommit(); - }}); + /* .mountSynchronously = */ true}); }); }