implement SchedulerDelegateProxy::schedulerShouldSynchronouslyUpdateViewOnUIThread (#51334)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51334

changelog: [internal]

Implement schedulerShouldSynchronouslyUpdateViewOnUIThread for C++ Native Animated. This simply passes along the data.

Reviewed By: zeyap

Differential Revision: D74739294

fbshipit-source-id: 7ef65e0b76004b9a2f6c3353169a6aa55ebeb44e
This commit is contained in:
Samuel Susla
2025-05-20 06:48:11 -07:00
committed by Facebook GitHub Bot
parent 8d3e971baa
commit 8672faef87
2 changed files with 3 additions and 2 deletions
@@ -42,6 +42,7 @@ NS_ASSUME_NONNULL_BEGIN
blockNativeResponder:(BOOL)blockNativeResponder
forShadowView:(const facebook::react::ShadowView &)shadowView;
- (void)schedulerDidSynchronouslyUpdateViewOnUIThread:(facebook::react::Tag)reactTag props:(folly::dynamic)props;
@end
/**
@@ -68,8 +68,8 @@ class SchedulerDelegateProxy : public SchedulerDelegate {
void schedulerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic &props) override
{
// Does nothing.
// This delegate method is not currently used on iOS.
RCTScheduler *scheduler = (__bridge RCTScheduler *)scheduler_;
[scheduler.delegate schedulerDidSynchronouslyUpdateViewOnUIThread:tag props:props];
}
private: