From b8286044dc0e7dfdf1b5e9a2e4bd224137d2f397 Mon Sep 17 00:00:00 2001 From: Sorin Cioban Date: Tue, 17 Nov 2026 12:47:09 +0000 Subject: [PATCH] Keep the iOS renderer scheduler alive through instance shutdown 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. [IOS] [FIXED] - Prevent a queued view command from accessing a destroyed scheduler delegate during a normal bridgeless reload 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. 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: https://github.com/react/react-native/pull/59754 (cherry picked from commit bfea95fb4cc68e7fc5e4528afaee9eaf7cebc167) Signed-off-by: Gabriel Donadel --- .../react-native/React/Fabric/RCTScheduler.h | 3 + .../react-native/React/Fabric/RCTScheduler.mm | 7 + .../React/Fabric/RCTSurfacePresenter.mm | 1 + .../platform/ios/React-RuntimeApple.podspec | 2 + .../platform/ios/ReactCommon/RCTInstance.mm | 51 +++-- .../RNTesterPods.xcodeproj/project.pbxproj | 4 + .../RCTInstanceInvalidationTests.mm | 196 ++++++++++++++++++ .../api-snapshots/ReactAppleDebugCxx.api | 1 + .../api-snapshots/ReactAppleNewarchCxx.api | 1 + .../api-snapshots/ReactAppleReleaseCxx.api | 1 + 10 files changed, 246 insertions(+), 21 deletions(-) create mode 100644 packages/rn-tester/RNTesterUnitTests/RCTInstanceInvalidationTests.mm diff --git a/packages/react-native/React/Fabric/RCTScheduler.h b/packages/react-native/React/Fabric/RCTScheduler.h index 8b809580c10c..59aef21acd3e 100644 --- a/packages/react-native/React/Fabric/RCTScheduler.h +++ b/packages/react-native/React/Fabric/RCTScheduler.h @@ -65,6 +65,9 @@ NS_ASSUME_NONNULL_BEGIN - (void)setupAnimationDriver:(const facebook::react::SurfaceHandler &)surfaceHandler; +// Permanently removes the layout-animation observer. Call on the main queue. +- (void)stopObservingLayoutAnimations; + - (void)onAnimationStarted; - (void)onAllAnimationsComplete; diff --git a/packages/react-native/React/Fabric/RCTScheduler.mm b/packages/react-native/React/Fabric/RCTScheduler.mm index 9519f18428e4..5130b2fdcddc 100644 --- a/packages/react-native/React/Fabric/RCTScheduler.mm +++ b/packages/react-native/React/Fabric/RCTScheduler.mm @@ -8,6 +8,7 @@ #import "RCTScheduler.h" #import +#import #import #import #import @@ -258,6 +259,12 @@ - (void)setupAnimationDriver:(const facebook::react::SurfaceHandler &)surfaceHan surfaceHandler.getMountingCoordinator()->setMountingOverrideDelegate(_animationDriver); } +- (void)stopObservingLayoutAnimations +{ + RCTAssertMainQueue(); + _uiRunLoopObserver.reset(); +} + - (void)onAnimationStarted { if (_uiRunLoopObserver) { diff --git a/packages/react-native/React/Fabric/RCTSurfacePresenter.mm b/packages/react-native/React/Fabric/RCTSurfacePresenter.mm index 0e4bbe376463..37da66912d93 100644 --- a/packages/react-native/React/Fabric/RCTSurfacePresenter.mm +++ b/packages/react-native/React/Fabric/RCTSurfacePresenter.mm @@ -234,6 +234,7 @@ - (BOOL)suspend } [self _stopAllSurfacesWithScheduler:scheduler]; + scheduler.delegate = nil; return YES; } diff --git a/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec b/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec index 175b9968cbca..a5a153c8382e 100644 --- a/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec +++ b/packages/react-native/ReactCommon/react/runtime/platform/ios/React-RuntimeApple.podspec @@ -18,6 +18,7 @@ end header_search_paths = [ "$(PODS_ROOT)/Headers/Private/React-Core", + "$(PODS_ROOT)/Headers/Private/Yoga", "$(PODS_TARGET_SRCROOT)/../../../..", "$(PODS_TARGET_SRCROOT)/../../../../..", ] @@ -50,6 +51,7 @@ Pod::Spec.new do |s| s.dependency "React-CoreModules" s.dependency "React-NativeModulesApple" s.dependency "React-RCTFabric" + s.dependency "Yoga" s.dependency "React-RuntimeCore" s.dependency "React-Mapbuffer" s.dependency "React-jserrorhandler" diff --git a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm index 7497fb6dc47e..4cb435d394b3 100644 --- a/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm +++ b/packages/react-native/ReactCommon/react/runtime/platform/ios/ReactCommon/RCTInstance.mm @@ -32,6 +32,7 @@ #import #import #import +#import #import #import #import @@ -230,28 +231,36 @@ - (void)invalidate } // suspend shouldn't be called under _invalidationMutex: it notifies surface observers, // which can call callFunctionOnJSModule and deadlock on the same mutex. + // Queued rendering updates capture the scheduler's delegate by raw pointer. + // Stop its run-loop observer on main, but keep it alive until queued JS work + // has drained. Release it before the runtime so its queued JSI handles remain valid. + __block RCTScheduler *scheduler = _surfacePresenter.scheduler; [_surfacePresenter suspend]; - [_jsThreadManager dispatchToJSThread:^{ - /** - * Every TurboModule is invalidated on its own method queue. - * TurboModuleManager invalidate blocks the calling thread until all TurboModules are invalidated. - */ - [self->_turboModuleManager invalidate]; - - // Clean up all the Resources - self->_reactInstance = nullptr; - self->_jsRuntimeFactory = nullptr; - self->_appTMMDelegate = nil; - self->_delegate = nil; - [self->_displayLink invalidate]; - self->_displayLink = nil; - - self->_turboModuleManager = nil; - self->_performanceLogger = nil; - - // Terminate the JavaScript thread, so that no other work executes after this block. - self->_jsThreadManager = nil; - }]; + RCTExecuteOnMainQueue(^{ + [scheduler stopObservingLayoutAnimations]; + [self->_jsThreadManager dispatchToJSThread:^{ + /** + * Every TurboModule is invalidated on its own method queue. + * TurboModuleManager invalidate blocks the calling thread until all TurboModules are invalidated. + */ + [self->_turboModuleManager invalidate]; + + // Clean up all the Resources + scheduler = nil; + self->_reactInstance = nullptr; + self->_jsRuntimeFactory = nullptr; + self->_appTMMDelegate = nil; + self->_delegate = nil; + [self->_displayLink invalidate]; + self->_displayLink = nil; + + self->_turboModuleManager = nil; + self->_performanceLogger = nil; + + // Terminate the JavaScript thread, so that no other work executes after this block. + self->_jsThreadManager = nil; + }]; + }); } - (void)registerSegmentWithId:(NSNumber *)segmentId path:(NSString *)path diff --git a/packages/rn-tester/RNTesterPods.xcodeproj/project.pbxproj b/packages/rn-tester/RNTesterPods.xcodeproj/project.pbxproj index ddccd36687ec..dbf21849edcf 100644 --- a/packages/rn-tester/RNTesterPods.xcodeproj/project.pbxproj +++ b/packages/rn-tester/RNTesterPods.xcodeproj/project.pbxproj @@ -56,6 +56,7 @@ E7DB218C22B41FCD005AC45F /* XCTest.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = E7DB218B22B41FCD005AC45F /* XCTest.framework */; }; F0D621C32BBB9E38005960AC /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = F0D621C22BBB9E38005960AC /* PrivacyInfo.xcprivacy */; }; F1A0B1C23D4E5F6071829302 /* RCTTurboModuleArrayBufferTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = F1A0B1C23D4E5F6071829301 /* RCTTurboModuleArrayBufferTests.mm */; }; + F1A0B1C23D4E5F6071829342 /* RCTInstanceInvalidationTests.mm in Sources */ = {isa = PBXBuildFile; fileRef = F1A0B1C23D4E5F6071829341 /* RCTInstanceInvalidationTests.mm */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -163,6 +164,7 @@ E7DB218B22B41FCD005AC45F /* XCTest.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = XCTest.framework; sourceTree = DEVELOPER_DIR; }; F0D621C22BBB9E38005960AC /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = ""; }; F1A0B1C23D4E5F6071829301 /* RCTTurboModuleArrayBufferTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTTurboModuleArrayBufferTests.mm; sourceTree = ""; }; + F1A0B1C23D4E5F6071829341 /* RCTInstanceInvalidationTests.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = RCTInstanceInvalidationTests.mm; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -342,6 +344,7 @@ E7DB20B022B2BAA4005AC45F /* RCTModuleInitTests.m */, E7DB20CB22B2BAA5005AC45F /* RCTModuleMethodTests.mm */, F1A0B1C23D4E5F6071829301 /* RCTTurboModuleArrayBufferTests.mm */, + F1A0B1C23D4E5F6071829341 /* RCTInstanceInvalidationTests.mm */, E7DB20CF22B2BAA5005AC45F /* RCTMultipartStreamReaderTests.m */, A975CA6B2C05EADE0043F72A /* RCTNetworkTaskTests.m */, E7DB20BE22B2BAA4005AC45F /* RCTNativeAnimatedNodesManagerTests.m */, @@ -759,6 +762,7 @@ E7DB20E022B2BAA6005AC45F /* RCTMethodArgumentTests.m in Sources */, E7DB20E822B2BAA6005AC45F /* RCTModuleMethodTests.mm in Sources */, F1A0B1C23D4E5F6071829302 /* RCTTurboModuleArrayBufferTests.mm in Sources */, + F1A0B1C23D4E5F6071829342 /* RCTInstanceInvalidationTests.mm in Sources */, E7DB20E222B2BAA6005AC45F /* RCTGzipTests.m in Sources */, E7DB20ED22B2BAA6005AC45F /* RCTURLUtilsTests.m in Sources */, E7DB20D322B2BAA6005AC45F /* RCTBlobManagerTests.m in Sources */, diff --git a/packages/rn-tester/RNTesterUnitTests/RCTInstanceInvalidationTests.mm b/packages/rn-tester/RNTesterUnitTests/RCTInstanceInvalidationTests.mm new file mode 100644 index 000000000000..4ddd151f15c5 --- /dev/null +++ b/packages/rn-tester/RNTesterUnitTests/RCTInstanceInvalidationTests.mm @@ -0,0 +1,196 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import +#import + +@interface RCTSchedulerLifetimeProbe : NSObject +@property (nonatomic, weak) id delegate; +@property (nonatomic, copy) void (^onDealloc)(BOOL onMainThread); +@property (nonatomic, copy) void (^onStopObserving)(BOOL onMainThread); +@property (nonatomic, copy) dispatch_block_t onTick; +- (void)startObserving; +- (void)stopObservingLayoutAnimations; +@end + +@implementation RCTSchedulerLifetimeProbe { + CFRunLoopObserverRef _observer; +} + +- (void)startObserving +{ + void *unretainedSelf = (__bridge void *)self; + _observer = CFRunLoopObserverCreateWithHandler( + kCFAllocatorDefault, kCFRunLoopBeforeWaiting, true, 0, ^(CFRunLoopObserverRef, CFRunLoopActivity) { + __unsafe_unretained RCTSchedulerLifetimeProbe *probe = (__bridge RCTSchedulerLifetimeProbe *)unretainedSelf; + dispatch_block_t tick = probe.onTick; + if (tick) { + tick(); + } + }); + CFRunLoopAddObserver(CFRunLoopGetMain(), _observer, kCFRunLoopCommonModes); +} + +- (void)stopObservingLayoutAnimations +{ + if (_observer) { + CFRunLoopRemoveObserver(CFRunLoopGetMain(), _observer, kCFRunLoopCommonModes); + CFRelease(_observer); + _observer = nullptr; + } + if (_onStopObserving) { + _onStopObserving([NSThread isMainThread]); + } +} + +- (void)dealloc +{ + if (_observer) { + CFRunLoopRemoveObserver(CFRunLoopGetMain(), _observer, kCFRunLoopCommonModes); + CFRelease(_observer); + } + if (_onDealloc) { + _onDealloc([NSThread isMainThread]); + } +} +@end + +@interface RCTJSThreadManagerStub : NSObject +@property (nonatomic, copy) dispatch_block_t pendingWork; +@end + +@implementation RCTJSThreadManagerStub +- (void)dispatchToJSThread:(dispatch_block_t)work +{ + self.pendingWork = work; +} +@end + +@interface RCTInstanceInvalidationTests : XCTestCase +@end + +@implementation RCTInstanceInvalidationTests + +- (void)runJSWork:(dispatch_block_t)work +{ + dispatch_semaphore_t finished = dispatch_semaphore_create(0); + dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{ + @autoreleasepool { + work(); + } + dispatch_semaphore_signal(finished); + }); + XCTAssertEqual(dispatch_semaphore_wait(finished, dispatch_time(DISPATCH_TIME_NOW, 3 * NSEC_PER_SEC)), 0); +} + +- (void)testInvalidateStopsObserverOnMainAndReleasesSchedulerDuringJSCleanup +{ + XCTAssertTrue([NSThread isMainThread]); + RCTSurfacePresenter *presenter = [RCTSurfacePresenter new]; + RCTJSThreadManagerStub *jsThreadManager = [RCTJSThreadManagerStub new]; + RCTInstance *instance = [RCTInstance new]; + [instance setValue:presenter forKey:@"surfacePresenter"]; + [instance setValue:jsThreadManager forKey:@"jsThreadManager"]; + + XCTestExpectation *released = [self expectationWithDescription:@"Scheduler released during JS cleanup"]; + __block BOOL observerStoppedOnMain = NO; + __block BOOL releasedBeforeJSThreadCleanup = NO; + __weak RCTInstance *weakInstance = instance; + __weak RCTSchedulerLifetimeProbe *weakScheduler; + @autoreleasepool { + RCTSchedulerLifetimeProbe *scheduler = [RCTSchedulerLifetimeProbe new]; + scheduler.delegate = presenter; + scheduler.onStopObserving = ^(BOOL onMainThread) { + observerStoppedOnMain = onMainThread; + }; + scheduler.onDealloc = ^(BOOL) { + releasedBeforeJSThreadCleanup = [weakInstance valueForKey:@"jsThreadManager"] != nil; + [released fulfill]; + }; + weakScheduler = scheduler; + // Exercise real instance invalidation and presenter suspension without a JS VM. + [presenter setValue:scheduler forKey:@"scheduler"]; + } + + @autoreleasepool { + [instance invalidate]; + XCTAssertNil(presenter.scheduler); + XCTAssertNotNil(weakScheduler); + XCTAssertNil(weakScheduler.delegate); + XCTAssertNotNil(jsThreadManager.pendingWork); + XCTAssertTrue(observerStoppedOnMain); + } + + dispatch_block_t drainWork = jsThreadManager.pendingWork; + [self runJSWork:drainWork]; + + [self waitForExpectations:@[ released ] timeout:3]; + XCTAssertTrue(releasedBeforeJSThreadCleanup); + // Keeping the cleanup block itself must not keep the scheduler alive. + XCTAssertNil(weakScheduler); + XCTAssertNil([instance valueForKey:@"jsThreadManager"]); + jsThreadManager.pendingWork = nil; +} + +- (void)testStoppedObserverDoesNotRunWhileWaitingForJSCleanup +{ + XCTAssertTrue([NSThread isMainThread]); + RCTSurfacePresenter *presenter = [RCTSurfacePresenter new]; + RCTJSThreadManagerStub *jsThreadManager = [RCTJSThreadManagerStub new]; + RCTInstance *instance = [RCTInstance new]; + [instance setValue:presenter forKey:@"surfacePresenter"]; + [instance setValue:jsThreadManager forKey:@"jsThreadManager"]; + + XCTestExpectation *noTick = [self expectationWithDescription:@"Stopped observer must not run"]; + noTick.inverted = YES; + XCTestExpectation *released = [self expectationWithDescription:@"Scheduler released during JS cleanup"]; + __weak RCTSchedulerLifetimeProbe *weakScheduler; + @autoreleasepool { + RCTSchedulerLifetimeProbe *scheduler = [RCTSchedulerLifetimeProbe new]; + weakScheduler = scheduler; + scheduler.onDealloc = ^(BOOL) { + [released fulfill]; + }; + scheduler.onTick = ^{ + [noTick fulfill]; + }; + [presenter setValue:scheduler forKey:@"scheduler"]; + [scheduler startObserving]; + } + + @autoreleasepool { + [instance invalidate]; + } + [self waitForExpectations:@[ noTick ] timeout:0.05]; + XCTAssertNotNil(weakScheduler); + [self runJSWork:jsThreadManager.pendingWork]; + [self waitForExpectations:@[ released ] timeout:3]; + XCTAssertNil(weakScheduler); + XCTAssertNil([instance valueForKey:@"jsThreadManager"]); + jsThreadManager.pendingWork = nil; +} + +- (void)testInvalidateWithoutSchedulerCompletesJSThreadCleanup +{ + RCTSurfacePresenter *presenter = [RCTSurfacePresenter new]; + RCTJSThreadManagerStub *jsThreadManager = [RCTJSThreadManagerStub new]; + RCTInstance *instance = [RCTInstance new]; + [instance setValue:presenter forKey:@"surfacePresenter"]; + [instance setValue:jsThreadManager forKey:@"jsThreadManager"]; + + [instance invalidate]; + XCTAssertNotNil(jsThreadManager.pendingWork); + jsThreadManager.pendingWork(); + XCTAssertNil(presenter.scheduler); + XCTAssertNil([instance valueForKey:@"jsThreadManager"]); + jsThreadManager.pendingWork = nil; +} + +@end diff --git a/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api index 8a4b91c447c1..0b6dc3ba8f4a 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleDebugCxx.api @@ -1713,6 +1713,7 @@ interface RCTScheduler : public NSObject { public virtual void removeEventListener:(const std::shared_ptr& listener); public virtual void reportMount:(facebook::react::SurfaceId surfaceId); public virtual void setupAnimationDriver:(const facebook::react::SurfaceHandler& surfaceHandler); + public virtual void stopObservingLayoutAnimations(); public virtual void unregisterSurface:(const facebook::react::SurfaceHandler& surfaceHandler); } diff --git a/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api index 5f0b25abe302..1db95048005d 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleNewarchCxx.api @@ -1712,6 +1712,7 @@ interface RCTScheduler : public NSObject { public virtual void removeEventListener:(const std::shared_ptr& listener); public virtual void reportMount:(facebook::react::SurfaceId surfaceId); public virtual void setupAnimationDriver:(const facebook::react::SurfaceHandler& surfaceHandler); + public virtual void stopObservingLayoutAnimations(); public virtual void unregisterSurface:(const facebook::react::SurfaceHandler& surfaceHandler); } diff --git a/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api b/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api index 842adfd67133..586d2bbf1fbd 100644 --- a/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api +++ b/scripts/cxx-api/api-snapshots/ReactAppleReleaseCxx.api @@ -1713,6 +1713,7 @@ interface RCTScheduler : public NSObject { public virtual void removeEventListener:(const std::shared_ptr& listener); public virtual void reportMount:(facebook::react::SurfaceId surfaceId); public virtual void setupAnimationDriver:(const facebook::react::SurfaceHandler& surfaceHandler); + public virtual void stopObservingLayoutAnimations(); public virtual void unregisterSurface:(const facebook::react::SurfaceHandler& surfaceHandler); }