2015-03-23 20:28:42 +00:00
|
|
|
/**
|
|
|
|
* 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.
|
|
|
|
*/
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2015-04-15 14:07:19 +00:00
|
|
|
#import "RCTFrameUpdate.h"
|
2015-02-20 04:10:52 +00:00
|
|
|
#import "RCTInvalidating.h"
|
|
|
|
|
2015-04-15 14:07:19 +00:00
|
|
|
@class RCTBridge;
|
2015-02-20 04:10:52 +00:00
|
|
|
|
2015-04-15 14:07:19 +00:00
|
|
|
@interface RCTNavigator : UIView <RCTFrameUpdateObserver>
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
@property (nonatomic, strong) UIView *reactNavSuperviewLink;
|
|
|
|
@property (nonatomic, assign) NSInteger requestedTopOfStack;
|
|
|
|
|
2015-04-15 14:07:19 +00:00
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
2015-02-20 04:10:52 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Schedules a JavaScript navigation and prevents `UIKit` from navigating until
|
|
|
|
* JavaScript has sent its scheduled navigation.
|
|
|
|
*
|
|
|
|
* @returns Whether or not a JavaScript driven navigation could be
|
|
|
|
* scheduled/reserved. If returning `NO`, JavaScript should usually just do
|
|
|
|
* nothing at all.
|
|
|
|
*/
|
|
|
|
- (BOOL)requestSchedulingJavaScriptNavigation;
|
|
|
|
|
|
|
|
@end
|