Skip to content

Commit bfea95f

Browse files
authored
Keep the iOS renderer scheduler alive through instance shutdown
## Summary Fixes #59721. During a normal bridgeless reload, `RCTInstance::invalidate` suspends the surface presenter before JS-thread cleanup runs. Suspension can destroy the renderer scheduler and its delegate proxy while the current JS task still has rendering updates capturing the proxy by raw pointer. Retain the scheduler through that cleanup, and clear its Objective-C delegate after stopping surfaces. Before dispatching cleanup, permanently remove its layout-animation run-loop observer on main. Scheduler destruction then stays in the same JS cleanup block as runtime destruction, with the scheduler released first. This prevents both an observer callout racing teardown and queued JSI handles outliving the runtime. It adds no per-rendering-callback guard, synchronous main wait, or JS-to-main-to-JS destruction round trip. Add three native lifecycle tests, the required CocoaPods Yoga header dependency for the scheduler import, and regenerated Apple API snapshots. ## Changelog [IOS] [FIXED] - Prevent a queued view command from accessing a destroyed scheduler delegate during a normal bridgeless reload ## Test Plan Used the issue's public `Nezz/expo-repro` branch `repro/ReloadSchedulerCrash` (React Native 0.88.1), Xcode 27.1, and a dedicated iOS 27.1 iPhone Duo simulator. - Initial reproduction: unmodified prebuilt crashed in 20/20 reloads; unmodified source crashed in 10/10. An actual EXC_BAD_ACCESS report contained `Scheduler::uiManagerDidDispatchCommand` and `RuntimeScheduler_Modern::updateRendering` on the JS thread. - Final observer-detachment fix: 20/20 normal reloads acknowledged after removing all diagnostics, with no crashes or timeouts. - Final observer-detachment fix: 20/20 instrumented reloads during a five-second layout animation acknowledged, with no crashes or timeouts. All 20 processes recorded real animation ticks, observer removal on main, scheduler destruction on JS, then runtime teardown. No ticks occurred after observer removal. - After removing the diagnostics and rebuilding, another 5/5 animated reloads acknowledged with no crashes or timeouts. - Three native lifecycle tests pass in a clean build without diagnostics. They exercise real instance invalidation/presenter suspension with scheduler and JS-thread-manager collaborators replaced, covering observer removal on main, no callbacks while JS cleanup is pending, scheduler retention/release, and invalidation without a scheduler. Runtime/JSI behavior is covered by the app trials, not by these probes alone. - All 12 API snapshot validations pass with Doxygen 1.16.1; clang-format 21.1.2, Ruby podspec syntax, and `git diff --check` pass. An unpublished intermediate approach that released the whole scheduler on main after JS cleanup crashed in 1/20 animated trials while destroying queued JSI handles. The final fix instead detaches only the observer on main and preserves scheduler-before-runtime destruction in one JS cleanup block. Validation stages the production changes into the report's source-built 0.88.1 fixture; it is not a complete checkout-HEAD build or full RNTester suite. The reporter's iOS 26.5 environment, physical devices, and Release builds were not tested. This addresses normal off-JS-thread bridgeless reload, not a new policy for inline JS invalidation, standalone presenter suspension, nested main run loops, repeated invalidation, the legacy bridge, or the separate shared-animation backend. ## Rebase validation on 5 November 2026 Rebased onto main `25d63d471a91cf9c2141bbe8dab6802eb73c2567`. Both commits applied without conflicts, and `git range-diff` confirms unchanged patches. All 12 API snapshots pass with Doxygen 1.16.1. Changed native sources pass clang-format 21.1.2, the podspec passes Ruby syntax checking, and diff checks pass. A fresh source build of the isolated React Native 0.88.1 fixture passes all three native lifecycle tests using the rebased test file and matching invalidation, observer-stop, and presenter-suspension methods. The earlier app reload trials remain prior evidence. Fresh runtime validation covers the three native lifecycle tests in that fixture, with scheduler and JS-thread-manager test probes. Checkout-head RNTester and device/Release execution remain outside this validation. Differential Revision: D129319362 Pull Request resolved: #59754
1 parent c761862 commit bfea95f

11 files changed

Lines changed: 247 additions & 21 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ NS_ASSUME_NONNULL_BEGIN
6262

6363
- (void)setupAnimationDriver:(const facebook::react::SurfaceHandler &)surfaceHandler;
6464

65+
// Permanently removes the layout-animation observer. Call on the main queue.
66+
- (void)stopObservingLayoutAnimations;
67+
6568
- (void)onAnimationStarted;
6669

6770
- (void)onAllAnimationsComplete;

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#import "RCTScheduler.h"
99

1010
#import <QuartzCore/CADisplayLink.h>
11+
#import <React/RCTAssert.h>
1112
#import <cxxreact/TraceSection.h>
1213
#import <react/featureflags/ReactNativeFeatureFlags.h>
1314
#import <react/renderer/animations/LayoutAnimationDriver.h>
@@ -258,6 +259,12 @@ - (void)setupAnimationDriver:(const facebook::react::SurfaceHandler &)surfaceHan
258259
surfaceHandler.getMountingCoordinator()->setMountingOverrideDelegate(_animationDriver);
259260
}
260261

262+
- (void)stopObservingLayoutAnimations
263+
{
264+
RCTAssertMainQueue();
265+
_uiRunLoopObserver.reset();
266+
}
267+
261268
- (void)onAnimationStarted
262269
{
263270
if (_uiRunLoopObserver) {

‎packages/react-native/React/Fabric/RCTSurfacePresenter.mm‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ - (BOOL)suspend
234234
}
235235

236236
[self _stopAllSurfacesWithScheduler:scheduler];
237+
scheduler.delegate = nil;
237238

238239
return YES;
239240
}

‎packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ end
1818

1919
header_search_paths = [
2020
"$(PODS_ROOT)/Headers/Private/React-Core",
21+
"$(PODS_ROOT)/Headers/Private/Yoga",
2122
"$(PODS_TARGET_SRCROOT)/../../../..",
2223
"$(PODS_TARGET_SRCROOT)/../../../../..",
2324
]
@@ -50,6 +51,7 @@ Pod::Spec.new do |s|
5051
s.dependency "React-CoreModules"
5152
s.dependency "React-NativeModulesApple"
5253
s.dependency "React-RCTFabric"
54+
s.dependency "Yoga"
5355
s.dependency "React-RuntimeCore"
5456
s.dependency "React-Mapbuffer"
5557
s.dependency "React-jserrorhandler"

‎packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm‎

Lines changed: 30 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#import <React/RCTLogBox.h>
3030
#import <React/RCTPerformanceLogger.h>
3131
#import <React/RCTRedBox.h>
32+
#import <React/RCTScheduler.h>
3233
#import <React/RCTSurfacePresenter.h>
3334
#import <ReactCommon/RCTTurboModule.h>
3435
#import <ReactCommon/RCTTurboModuleManager.h>
@@ -206,28 +207,36 @@ - (void)invalidate
206207
}
207208
// suspend shouldn't be called under _invalidationMutex: it notifies surface observers,
208209
// which can call callFunctionOnJSModule and deadlock on the same mutex.
210+
// Queued rendering updates capture the scheduler's delegate by raw pointer.
211+
// Stop its run-loop observer on main, but keep it alive until queued JS work
212+
// has drained. Release it before the runtime so its queued JSI handles remain valid.
213+
__block RCTScheduler *scheduler = _surfacePresenter.scheduler;
209214
[_surfacePresenter suspend];
210-
[_jsThreadManager dispatchToJSThread:^{
211-
/**
212-
* Every TurboModule is invalidated on its own method queue.
213-
* TurboModuleManager invalidate blocks the calling thread until all TurboModules are invalidated.
214-
*/
215-
[self->_turboModuleManager invalidate];
216-
217-
// Clean up all the Resources
218-
self->_reactInstance = nullptr;
219-
self->_jsRuntimeFactory = nullptr;
220-
self->_appTMMDelegate = nil;
221-
self->_delegate = nil;
222-
[self->_displayLink invalidate];
223-
self->_displayLink = nil;
224-
225-
self->_turboModuleManager = nil;
226-
self->_performanceLogger = nil;
227-
228-
// Terminate the JavaScript thread, so that no other work executes after this block.
229-
self->_jsThreadManager = nil;
230-
}];
215+
RCTExecuteOnMainQueue(^{
216+
[scheduler stopObservingLayoutAnimations];
217+
[self->_jsThreadManager dispatchToJSThread:^{
218+
/**
219+
* Every TurboModule is invalidated on its own method queue.
220+
* TurboModuleManager invalidate blocks the calling thread until all TurboModules are invalidated.
221+
*/
222+
[self->_turboModuleManager invalidate];
223+
224+
// Clean up all the Resources
225+
scheduler = nil;
226+
self->_reactInstance = nullptr;
227+
self->_jsRuntimeFactory = nullptr;
228+
self->_appTMMDelegate = nil;
229+
self->_delegate = nil;
230+
[self->_displayLink invalidate];
231+
self->_displayLink = nil;
232+
233+
self->_turboModuleManager = nil;
234+
self->_performanceLogger = nil;
235+
236+
// Terminate the JavaScript thread, so that no other work executes after this block.
237+
self->_jsThreadManager = nil;
238+
}];
239+
});
231240
}
232241

233242
- (std::shared_ptr<CallInvoker>)jsCallInvoker

‎packages/rn-tester/RNTesterPods.xcodeproj/project.pbxproj‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
F0D621C32BBB9E38005960AC /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = F0D621C22BBB9E38005960AC /* PrivacyInfo.xcprivacy */; };
5252
F1A0B1C23D4E5F6071829302 /* RCTTurboModuleArrayBufferTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = F1A0B1C23D4E5F6071829301 /* RCTTurboModuleArrayBufferTests.mm */; };
5353
F1A0B1C23D4E5F6071829322 /* RCTTurboModuleStringConversionTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = F1A0B1C23D4E5F6071829321 /* RCTTurboModuleStringConversionTests.mm */; };
54+
F1A0B1C23D4E5F6071829342 /* RCTInstanceInvalidationTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = F1A0B1C23D4E5F6071829341 /* RCTInstanceInvalidationTests.mm */; };
5455
D1A60AD11B9247A080734F02 /* RCTDevLoadingViewTests.m in Sources */ = {isa = PBXBuildFile; fileRef = D1A60AD11B9247A080734F01 /* RCTDevLoadingViewTests.m */; };
5556
/* End PBXBuildFile section */
5657

@@ -150,6 +151,7 @@
150151
F0D621C22BBB9E38005960AC /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
151152
F1A0B1C23D4E5F6071829301 /* RCTTurboModuleArrayBufferTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTTurboModuleArrayBufferTests.mm; sourceTree = "<group>"; };
152153
F1A0B1C23D4E5F6071829321 /* RCTTurboModuleStringConversionTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTTurboModuleStringConversionTests.mm; sourceTree = "<group>"; };
154+
F1A0B1C23D4E5F6071829341 /* RCTInstanceInvalidationTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTInstanceInvalidationTests.mm; sourceTree = "<group>"; };
153155
D1A60AD11B9247A080734F01 /* RCTDevLoadingViewTests.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RCTDevLoadingViewTests.m; sourceTree = "<group>"; };
154156
/* End PBXFileReference section */
155157

@@ -311,6 +313,7 @@
311313
E7DB20CB22B2BAA5005AC45F /* RCTModuleMethodTests.mm */,
312314
F1A0B1C23D4E5F6071829301 /* RCTTurboModuleArrayBufferTests.mm */,
313315
F1A0B1C23D4E5F6071829321 /* RCTTurboModuleStringConversionTests.mm */,
316+
F1A0B1C23D4E5F6071829341 /* RCTInstanceInvalidationTests.mm */,
314317
E7DB20CF22B2BAA5005AC45F /* RCTMultipartStreamReaderTests.m */,
315318
A975CA6B2C05EADE0043F72A /* RCTNetworkTaskTests.m */,
316319
E7DB20BE22B2BAA4005AC45F /* RCTNativeAnimatedNodesManagerTests.m */,
@@ -623,6 +626,7 @@
623626
E7DB20E822B2BAA6005AC45F /* RCTModuleMethodTests.mm in Sources */,
624627
F1A0B1C23D4E5F6071829302 /* RCTTurboModuleArrayBufferTests.mm in Sources */,
625628
F1A0B1C23D4E5F6071829322 /* RCTTurboModuleStringConversionTests.mm in Sources */,
629+
F1A0B1C23D4E5F6071829342 /* RCTInstanceInvalidationTests.mm in Sources */,
626630
E7DB20E222B2BAA6005AC45F /* RCTGzipTests.m in Sources */,
627631
E7DB20ED22B2BAA6005AC45F /* RCTURLUtilsTests.m in Sources */,
628632
E7DB20D322B2BAA6005AC45F /* RCTBlobManagerTests.m in Sources */,
Lines changed: 196 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
/*
2+
* Copyright (c) Meta Platforms, Inc. and affiliates.
3+
*
4+
* This source code is licensed under the MIT license found in the
5+
* LICENSE file in the root directory of this source tree.
6+
*/
7+
8+
#import <CoreFoundation/CoreFoundation.h>
9+
#import <XCTest/XCTest.h>
10+
11+
#import <React/RCTSurfacePresenter.h>
12+
#import <ReactCommon/RCTInstance.h>
13+
14+
@interface RCTSchedulerLifetimeProbe : NSObject
15+
@property (nonatomic, weak) id delegate;
16+
@property (nonatomic, copy) void (^onDealloc)(BOOL onMainThread);
17+
@property (nonatomic, copy) void (^onStopObserving)(BOOL onMainThread);
18+
@property (nonatomic, copy) dispatch_block_t onTick;
19+
- (void)startObserving;
20+
- (void)stopObservingLayoutAnimations;
21+
@end
22+
23+
@implementation RCTSchedulerLifetimeProbe {
24+
CFRunLoopObserverRef _observer;
25+
}
26+
27+
- (void)startObserving
28+
{
29+
void *unretainedSelf = (__bridge void *)self;
30+
_observer = CFRunLoopObserverCreateWithHandler(
31+
kCFAllocatorDefault, kCFRunLoopBeforeWaiting, true, 0, ^(CFRunLoopObserverRef, CFRunLoopActivity) {
32+
__unsafe_unretained RCTSchedulerLifetimeProbe *probe = (__bridge RCTSchedulerLifetimeProbe *)unretainedSelf;
33+
dispatch_block_t tick = probe.onTick;
34+
if (tick) {
35+
tick();
36+
}
37+
});
38+
CFRunLoopAddObserver(CFRunLoopGetMain(), _observer, kCFRunLoopCommonModes);
39+
}
40+
41+
- (void)stopObservingLayoutAnimations
42+
{
43+
if (_observer) {
44+
CFRunLoopRemoveObserver(CFRunLoopGetMain(), _observer, kCFRunLoopCommonModes);
45+
CFRelease(_observer);
46+
_observer = nullptr;
47+
}
48+
if (_onStopObserving) {
49+
_onStopObserving([NSThread isMainThread]);
50+
}
51+
}
52+
53+
- (void)dealloc
54+
{
55+
if (_observer) {
56+
CFRunLoopRemoveObserver(CFRunLoopGetMain(), _observer, kCFRunLoopCommonModes);
57+
CFRelease(_observer);
58+
}
59+
if (_onDealloc) {
60+
_onDealloc([NSThread isMainThread]);
61+
}
62+
}
63+
@end
64+
65+
@interface RCTJSThreadManagerStub : NSObject
66+
@property (nonatomic, copy) dispatch_block_t pendingWork;
67+
@end
68+
69+
@implementation RCTJSThreadManagerStub
70+
- (void)dispatchToJSThread:(dispatch_block_t)work
71+
{
72+
self.pendingWork = work;
73+
}
74+
@end
75+
76+
@interface RCTInstanceInvalidationTests : XCTestCase
77+
@end
78+
79+
@implementation RCTInstanceInvalidationTests
80+
81+
- (void)runJSWork:(dispatch_block_t)work
82+
{
83+
dispatch_semaphore_t finished = dispatch_semaphore_create(0);
84+
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
85+
@autoreleasepool {
86+
work();
87+
}
88+
dispatch_semaphore_signal(finished);
89+
});
90+
XCTAssertEqual(dispatch_semaphore_wait(finished, dispatch_time(DISPATCH_TIME_NOW, 3 * NSEC_PER_SEC)), 0);
91+
}
92+
93+
- (void)testInvalidateStopsObserverOnMainAndReleasesSchedulerDuringJSCleanup
94+
{
95+
XCTAssertTrue([NSThread isMainThread]);
96+
RCTSurfacePresenter *presenter = [RCTSurfacePresenter new];
97+
RCTJSThreadManagerStub *jsThreadManager = [RCTJSThreadManagerStub new];
98+
RCTInstance *instance = [RCTInstance new];
99+
[instance setValue:presenter forKey:@"surfacePresenter"];
100+
[instance setValue:jsThreadManager forKey:@"jsThreadManager"];
101+
102+
XCTestExpectation *released = [self expectationWithDescription:@"Scheduler released during JS cleanup"];
103+
__block BOOL observerStoppedOnMain = NO;
104+
__block BOOL releasedBeforeJSThreadCleanup = NO;
105+
__weak RCTInstance *weakInstance = instance;
106+
__weak RCTSchedulerLifetimeProbe *weakScheduler;
107+
@autoreleasepool {
108+
RCTSchedulerLifetimeProbe *scheduler = [RCTSchedulerLifetimeProbe new];
109+
scheduler.delegate = presenter;
110+
scheduler.onStopObserving = ^(BOOL onMainThread) {
111+
observerStoppedOnMain = onMainThread;
112+
};
113+
scheduler.onDealloc = ^(BOOL) {
114+
releasedBeforeJSThreadCleanup = [weakInstance valueForKey:@"jsThreadManager"] != nil;
115+
[released fulfill];
116+
};
117+
weakScheduler = scheduler;
118+
// Exercise real instance invalidation and presenter suspension without a JS VM.
119+
[presenter setValue:scheduler forKey:@"scheduler"];
120+
}
121+
122+
@autoreleasepool {
123+
[instance invalidate];
124+
XCTAssertNil(presenter.scheduler);
125+
XCTAssertNotNil(weakScheduler);
126+
XCTAssertNil(weakScheduler.delegate);
127+
XCTAssertNotNil(jsThreadManager.pendingWork);
128+
XCTAssertTrue(observerStoppedOnMain);
129+
}
130+
131+
dispatch_block_t drainWork = jsThreadManager.pendingWork;
132+
[self runJSWork:drainWork];
133+
134+
[self waitForExpectations:@[ released ] timeout:3];
135+
XCTAssertTrue(releasedBeforeJSThreadCleanup);
136+
// Keeping the cleanup block itself must not keep the scheduler alive.
137+
XCTAssertNil(weakScheduler);
138+
XCTAssertNil([instance valueForKey:@"jsThreadManager"]);
139+
jsThreadManager.pendingWork = nil;
140+
}
141+
142+
- (void)testStoppedObserverDoesNotRunWhileWaitingForJSCleanup
143+
{
144+
XCTAssertTrue([NSThread isMainThread]);
145+
RCTSurfacePresenter *presenter = [RCTSurfacePresenter new];
146+
RCTJSThreadManagerStub *jsThreadManager = [RCTJSThreadManagerStub new];
147+
RCTInstance *instance = [RCTInstance new];
148+
[instance setValue:presenter forKey:@"surfacePresenter"];
149+
[instance setValue:jsThreadManager forKey:@"jsThreadManager"];
150+
151+
XCTestExpectation *noTick = [self expectationWithDescription:@"Stopped observer must not run"];
152+
noTick.inverted = YES;
153+
XCTestExpectation *released = [self expectationWithDescription:@"Scheduler released during JS cleanup"];
154+
__weak RCTSchedulerLifetimeProbe *weakScheduler;
155+
@autoreleasepool {
156+
RCTSchedulerLifetimeProbe *scheduler = [RCTSchedulerLifetimeProbe new];
157+
weakScheduler = scheduler;
158+
scheduler.onDealloc = ^(BOOL) {
159+
[released fulfill];
160+
};
161+
scheduler.onTick = ^{
162+
[noTick fulfill];
163+
};
164+
[presenter setValue:scheduler forKey:@"scheduler"];
165+
[scheduler startObserving];
166+
}
167+
168+
@autoreleasepool {
169+
[instance invalidate];
170+
}
171+
[self waitForExpectations:@[ noTick ] timeout:0.05];
172+
XCTAssertNotNil(weakScheduler);
173+
[self runJSWork:jsThreadManager.pendingWork];
174+
[self waitForExpectations:@[ released ] timeout:3];
175+
XCTAssertNil(weakScheduler);
176+
XCTAssertNil([instance valueForKey:@"jsThreadManager"]);
177+
jsThreadManager.pendingWork = nil;
178+
}
179+
180+
- (void)testInvalidateWithoutSchedulerCompletesJSThreadCleanup
181+
{
182+
RCTSurfacePresenter *presenter = [RCTSurfacePresenter new];
183+
RCTJSThreadManagerStub *jsThreadManager = [RCTJSThreadManagerStub new];
184+
RCTInstance *instance = [RCTInstance new];
185+
[instance setValue:presenter forKey:@"surfacePresenter"];
186+
[instance setValue:jsThreadManager forKey:@"jsThreadManager"];
187+
188+
[instance invalidate];
189+
XCTAssertNotNil(jsThreadManager.pendingWork);
190+
jsThreadManager.pendingWork();
191+
XCTAssertNil(presenter.scheduler);
192+
XCTAssertNil([instance valueForKey:@"jsThreadManager"]);
193+
jsThreadManager.pendingWork = nil;
194+
}
195+
196+
@end

‎scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,6 +1614,7 @@ interface RCTScheduler : public NSObject {
16141614
public virtual void removeEventListener:(const std::shared_ptr<facebook::react::EventListener>& listener);
16151615
public virtual void reportMount:(facebook::react::SurfaceId surfaceId);
16161616
public virtual void setupAnimationDriver:(const facebook::react::SurfaceHandler& surfaceHandler);
1617+
public virtual void stopObservingLayoutAnimations();
16171618
public virtual void unregisterSurface:(const facebook::react::SurfaceHandler& surfaceHandler);
16181619
}
16191620

‎scripts/cxx-api/api-snapshots/ReactAppleFrameworksCxx.api‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,7 @@ interface RCTScheduler : public NSObject {
16571657
public virtual void removeEventListener:(const std::shared_ptr<facebook::react::EventListener>& listener);
16581658
public virtual void reportMount:(facebook::react::SurfaceId surfaceId);
16591659
public virtual void setupAnimationDriver:(const facebook::react::SurfaceHandler& surfaceHandler);
1660+
public virtual void stopObservingLayoutAnimations();
16601661
public virtual void unregisterSurface:(const facebook::react::SurfaceHandler& surfaceHandler);
16611662
}
16621663

‎scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ interface RCTScheduler : public NSObject {
16131613
public virtual void removeEventListener:(const std::shared_ptr<facebook::react::EventListener>& listener);
16141614
public virtual void reportMount:(facebook::react::SurfaceId surfaceId);
16151615
public virtual void setupAnimationDriver:(const facebook::react::SurfaceHandler& surfaceHandler);
1616+
public virtual void stopObservingLayoutAnimations();
16161617
public virtual void unregisterSurface:(const facebook::react::SurfaceHandler& surfaceHandler);
16171618
}
16181619

0 commit comments

Comments
 (0)