34 lines
1.0 KiB
Objective-C
34 lines
1.0 KiB
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>
|
|
|
|
#import "RCTInvalidating.h"
|
|
|
|
@class RCTEventDispatcher;
|
|
|
|
@interface RCTNavigator : UIView <RCTInvalidating>
|
|
|
|
@property (nonatomic, strong) UIView *reactNavSuperviewLink;
|
|
@property (nonatomic, assign) NSInteger requestedTopOfStack;
|
|
|
|
- (instancetype)initWithEventDispatcher:(RCTEventDispatcher *)eventDispatcher NS_DESIGNATED_INITIALIZER;
|
|
|
|
/**
|
|
* 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
|