mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
700960c9f1
Summary: `RCTPropsAnimatedNode` uses the bridge to access it's current surface presenter to perform animations. In bridgeless mode, the surface presenter is not owned by the bridge. Instead, pass the surface presenter through the ownership chain: `RCTNativeAnimated*Module` -> `RCTNativeAnimatedNodesManager` -> `RCTPropsAnimatedNode` `RCTSurfacePresenter` should not be strongly held by any of these animation internals. If it gets destroyed at a higher level, animations should not be completed. Changelog: [Internal] Differential Revision: D23272735 fbshipit-source-id: ce08ee3b59ac2ba70e31cebb7ba8e9f3a644c848
27 lines
643 B
Objective-C
27 lines
643 B
Objective-C
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#import "RCTAnimatedNode.h"
|
|
|
|
#import <React/RCTSurfacePresenterStub.h>
|
|
|
|
@class RCTBridge;
|
|
@class RCTViewPropertyMapper;
|
|
|
|
@interface RCTPropsAnimatedNode : RCTAnimatedNode
|
|
|
|
- (void)connectToView:(NSNumber *)viewTag
|
|
viewName:(NSString *)viewName
|
|
bridge:(RCTBridge *)bridge
|
|
surfacePresenter:(id<RCTSurfacePresenterStub>)surfacePresenter;
|
|
|
|
- (void)disconnectFromView:(NSNumber *)viewTag;
|
|
|
|
- (void)restoreDefaultValues;
|
|
|
|
@end
|