Skip to content

Commit 239a84d

Browse files
sammy-SCfacebook-github-bot
authored andcommitted
implement SchedulerDelegateProxy::schedulerShouldSynchronouslyUpdateViewOnUIThread (facebook#51334)
Summary: Pull Request resolved: facebook#51334 changelog: [internal] Implement schedulerShouldSynchronouslyUpdateViewOnUIThread for C++ Native Animated. This simply passes along the data. Reviewed By: zeyap Differential Revision: D74739294
1 parent 3a0241a commit 239a84d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/react-native/React/Fabric/RCTScheduler.h

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ NS_ASSUME_NONNULL_BEGIN
4242
blockNativeResponder:(BOOL)blockNativeResponder
4343
forShadowView:(const facebook::react::ShadowView &)shadowView;
4444

45+
- (void)synchronouslyUpdateViewOnUIThread:(facebook::react::Tag)reactTag props:(folly::dynamic)props;
4546
@end
4647

4748
/**

packages/react-native/React/Fabric/RCTScheduler.mm

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ void schedulerDidSendAccessibilityEvent(const ShadowView &shadowView, const std:
7070

7171
void schedulerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic &props) override
7272
{
73-
// Does nothing.
74-
// This delegate method is not currently used on iOS.
73+
RCTScheduler *scheduler = (__bridge RCTScheduler *)scheduler_;
74+
[scheduler.delegate synchronouslyUpdateViewOnUIThread:tag props:props];
7575
}
7676

7777
private:

0 commit comments

Comments
 (0)