mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
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:
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;
|
||||
|
||||
+5
@@ -29,6 +29,11 @@
|
||||
}
|
||||
|
||||
- (void)dealloc
|
||||
{
|
||||
[self invalidate];
|
||||
}
|
||||
|
||||
- (void)invalidate
|
||||
{
|
||||
if (_displayLink != nil) {
|
||||
#if TARGET_OS_OSX
|
||||
|
||||
Reference in new issue
Block a user