2015-01-29 17:10:49 -08:00
|
|
|
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2015-02-06 15:43:59 -08:00
|
|
|
#import "RCTInvalidating.h"
|
|
|
|
|
2015-02-03 16:02:36 -08:00
|
|
|
@class RCTEventDispatcher;
|
2015-01-29 17:10:49 -08:00
|
|
|
|
2015-02-06 15:43:59 -08:00
|
|
|
@interface RCTNavigator : UIView <RCTInvalidating>
|
2015-01-29 17:10:49 -08:00
|
|
|
|
|
|
|
@property (nonatomic, strong) UIView *reactNavSuperviewLink;
|
|
|
|
@property (nonatomic, assign) NSInteger requestedTopOfStack;
|
|
|
|
|
2015-03-02 11:36:55 -08:00
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
2015-01-29 17:10:49 -08: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
|