diff --git a/Common/cpp/NativeModules/NativeReanimatedModule.cpp b/Common/cpp/NativeModules/NativeReanimatedModule.cpp index 4330e4fdca4..d08bc41e64c 100644 --- a/Common/cpp/NativeModules/NativeReanimatedModule.cpp +++ b/Common/cpp/NativeModules/NativeReanimatedModule.cpp @@ -212,12 +212,11 @@ void NativeReanimatedModule::scheduleOnUI( assert( shareableWorklet->valueType() == Shareable::WorkletType && "only worklets can be scheduled to run on UI"); - frameCallbacks.push_back([=](double timestamp) { + scheduler->scheduleOnUI([=] { jsi::Runtime &rt = *runtimeHelper->uiRuntime(); auto workletValue = shareableWorklet->getJSValue(rt); runtimeHelper->runOnUIGuarded(workletValue); }); - maybeRequestRender(); } jsi::Value NativeReanimatedModule::makeSynchronizedDataHolder(