mirror of
https://github.com/status-im/react-native.git
synced 2025-02-04 05:34:15 +00:00
Fabric: Deprecating -[RCTSurface rootViewTag]
Summary: This diff deprecates `-[RCTSurface rootViewTag]` in favour of `-[RCTSurface rootTag]` which returns same value but represented as `ReactTag` (`long`) instead of `NSNumber *`. Reviewed By: mdvacca Differential Revision: D7857044 fbshipit-source-id: f5427c30d3de2d3563e830f2caac70b7dc9631f9
This commit is contained in:
parent
25664cc48c
commit
20e88e9ac4
@ -5,6 +5,7 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
#import <React/RCTPrimitives.h>
|
||||
#import <React/RCTSurfaceStage.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
@ -37,7 +38,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (atomic, readonly) RCTSurfaceStage stage;
|
||||
@property (atomic, readonly) RCTBridge *bridge;
|
||||
@property (atomic, readonly) NSString *moduleName;
|
||||
@property (atomic, readonly) NSNumber *rootViewTag;
|
||||
@property (atomic, readonly) ReactTag rootTag;
|
||||
|
||||
@property (atomic, readwrite, weak, nullable) id<RCTSurfaceDelegate> delegate;
|
||||
|
||||
@ -124,4 +125,13 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@end
|
||||
|
||||
@interface RCTFabricSurface (Deprecated)
|
||||
|
||||
/**
|
||||
* Deprecated. Use `rootTag` instead.
|
||||
*/
|
||||
@property (atomic, readonly) NSNumber *rootViewTag;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
|
@ -28,7 +28,6 @@
|
||||
// Immutable
|
||||
RCTSurfacePresenter *_surfacePresenter;
|
||||
NSString *_moduleName;
|
||||
ReactTag _rootTag;
|
||||
|
||||
// Protected by the `_mutex`
|
||||
std::mutex _mutex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user