mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
a0ff8c7706
Summary: It's always bothered that we have this protocol and I figured it could just be merged with RCTWrapperViewController. Closes https://github.com/facebook/react-native/pull/17290 Reviewed By: mmmulani Differential Revision: D6611544 Pulled By: javache fbshipit-source-id: a50b9d5adbeb2c48dbadbbfc1c77ccf6d1aae144
31 lines
967 B
Objective-C
31 lines
967 B
Objective-C
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
* All rights reserved.
|
|
*
|
|
* This source code is licensed under the BSD-style license found in the
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
*/
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
@class RCTNavItem;
|
|
@class RCTWrapperViewController;
|
|
|
|
@protocol RCTWrapperViewControllerNavigationListener <NSObject>
|
|
|
|
- (void)wrapperViewController:(RCTWrapperViewController *)wrapperViewController
|
|
didMoveToNavigationController:(UINavigationController *)navigationController;
|
|
|
|
@end
|
|
|
|
@interface RCTWrapperViewController : UIViewController
|
|
|
|
- (instancetype)initWithContentView:(UIView *)contentView NS_DESIGNATED_INITIALIZER;
|
|
- (instancetype)initWithNavItem:(RCTNavItem *)navItem;
|
|
|
|
@property (nonatomic, weak) id<RCTWrapperViewControllerNavigationListener> navigationListener;
|
|
@property (nonatomic, strong) RCTNavItem *navItem;
|
|
|
|
@end
|