2015-02-20 04:10:52 +00:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
|
|
|
#import "RCTInvalidating.h"
|
|
|
|
|
|
|
|
@class RCTEventDispatcher;
|
|
|
|
|
|
|
|
@interface RCTNavigator : UIView <RCTInvalidating>
|
|
|
|
|
|
|
|
@property (nonatomic, strong) UIView *reactNavSuperviewLink;
|
|
|
|
@property (nonatomic, assign) NSInteger requestedTopOfStack;
|
|
|
|
|
2015-03-01 23:33:55 +00:00
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher 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
|