diff --git a/React/Views/RCTNavigator.h b/React/Views/RCTNavigator.h index 57b744993..d5ea85518 100644 --- a/React/Views/RCTNavigator.h +++ b/React/Views/RCTNavigator.h @@ -15,7 +15,6 @@ @interface RCTNavigator : UIView -@property (nonatomic, strong) UIView *reactNavSuperviewLink; @property (nonatomic, assign) NSInteger requestedTopOfStack; @property (nonatomic, assign) BOOL interactivePopGestureEnabled; diff --git a/React/Views/RCTNavigator.m b/React/Views/RCTNavigator.m index 0fde4515f..11ef9107d 100644 --- a/React/Views/RCTNavigator.m +++ b/React/Views/RCTNavigator.m @@ -499,17 +499,6 @@ RCT_NOT_IMPLEMENTED(- (instancetype)initWithCoder:(NSCoder *)aDecoder) [_bridge.eventDispatcher sendFakeScrollEvent:self.reactTag]; } -/** - * Must be overridden because UIKit removes the view's superview when used - * as a navigator - it's considered outside the view hierarchy. - */ -- (UIView *)reactSuperview -{ - RCTAssert(!_bridge.isValid || self.superview != nil, @"put reactNavSuperviewLink back"); - UIView *superview = [super reactSuperview]; - return superview ?: self.reactNavSuperviewLink; -} - - (void)reactBridgeDidFinishTransaction { // we can't hook up the VC hierarchy in 'init' because the subviews aren't