Invalidate displayLink & deallocate RCTAnimatedModuleProvider before ReactHost teardown (#54712)

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

## Changelog:

[iOS] [Added] - Allow invalidateDisplayLink on RCTAnimatedModuleProvider

Reviewed By: sammy-SC

Differential Revision: D87929762

fbshipit-source-id: 116661a96154cdf108e7c1a6e7f09f49275529b7
This commit is contained in:
Zeya Peng authored and meta-codesync[bot] committed 2025-11-26 15:45:07 -08:00
1 parent 5e95f189e8
commit 7c603ee261
2 files changed
+7

No files matched your search

@@ -19,6 +19,8 @@ class TurboModule;
@interface RCTAnimatedModuleProvider : NSObject
- (void)invalidate;
- (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:(const std::string &)name
jsInvoker:
(std::shared_ptr<facebook::react::CallInvoker>)jsInvoker;
@@ -29,6 +29,11 @@
}
- (void)dealloc
{
[self invalidate];
}
- (void)invalidate
{
if (_displayLink != nil) {
#if TARGET_OS_OSX