`-[UIView _DEBUG_reactShadowView]` was removed
Summary: Nobody uses it. If the reference to the bridge is available (which is should be case for testing purposes at least), it is easy to get same information. Reviewed By: mmmulani Differential Revision: D6596376 fbshipit-source-id: 066eeb1e9465b4e0cc9d9b5b6bf41722450870e4
This commit is contained in:
parent
c79246dbc6
commit
0ae4c47daa
|
@ -976,10 +976,6 @@ RCT_EXPORT_METHOD(createView:(nonnull NSNumber *)reactTag
|
|||
if (view) {
|
||||
[componentData setProps:props forView:view];
|
||||
uiManager->_viewRegistry[reactTag] = view;
|
||||
|
||||
#if RCT_DEV
|
||||
[view _DEBUG_setReactShadowView:shadowView];
|
||||
#endif
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -109,14 +109,4 @@
|
|||
*/
|
||||
@property (nonatomic, readonly) UIView *reactAccessibilityElement;
|
||||
|
||||
#if RCT_DEV
|
||||
|
||||
/**
|
||||
Tools for debugging
|
||||
*/
|
||||
|
||||
@property (nonatomic, strong, setter=_DEBUG_setReactShadowView:) RCTShadowView *_DEBUG_reactShadowView;
|
||||
|
||||
#endif
|
||||
|
||||
@end
|
||||
|
|
|
@ -37,21 +37,6 @@
|
|||
objc_setAssociatedObject(self, @selector(nativeID), nativeID, OBJC_ASSOCIATION_RETAIN_NONATOMIC);
|
||||
}
|
||||
|
||||
#if RCT_DEV
|
||||
|
||||
- (RCTShadowView *)_DEBUG_reactShadowView
|
||||
{
|
||||
return objc_getAssociatedObject(self, _cmd);
|
||||
}
|
||||
|
||||
- (void)_DEBUG_setReactShadowView:(RCTShadowView *)shadowView
|
||||
{
|
||||
// Use assign to avoid keeping the shadowView alive it if no longer exists
|
||||
objc_setAssociatedObject(self, @selector(_DEBUG_reactShadowView), shadowView, OBJC_ASSOCIATION_ASSIGN);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
- (BOOL)isReactRootView
|
||||
{
|
||||
return RCTIsReactRootView(self.reactTag);
|
||||
|
|
Loading…
Reference in New Issue