2015-07-28 07:31:26 -07: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.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
|
2016-11-23 07:47:52 -08:00
|
|
|
#import <React/RCTInvalidating.h>
|
|
|
|
#import <React/RCTModalHostViewManager.h>
|
|
|
|
#import <React/RCTView.h>
|
2015-08-13 15:09:10 -01:00
|
|
|
|
2015-07-28 07:31:26 -07:00
|
|
|
@class RCTBridge;
|
2016-08-23 16:50:23 -07:00
|
|
|
@class RCTModalHostViewController;
|
|
|
|
|
|
|
|
@protocol RCTModalHostViewInteractor;
|
2015-07-28 07:31:26 -07:00
|
|
|
|
2015-08-13 15:09:10 -01:00
|
|
|
@interface RCTModalHostView : UIView <RCTInvalidating>
|
2015-07-28 07:31:26 -07:00
|
|
|
|
2016-04-28 15:59:11 -07:00
|
|
|
@property (nonatomic, copy) NSString *animationType;
|
2015-08-13 15:09:10 -01:00
|
|
|
@property (nonatomic, assign, getter=isTransparent) BOOL transparent;
|
2015-07-28 07:31:26 -07:00
|
|
|
|
2016-03-03 12:42:41 -08:00
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onShow;
|
|
|
|
|
2016-08-23 16:50:23 -07:00
|
|
|
@property (nonatomic, weak) id<RCTModalHostViewInteractor> delegate;
|
|
|
|
|
2016-09-07 06:06:12 -07:00
|
|
|
@property (nonatomic, copy) NSArray<NSString *> *supportedOrientations;
|
|
|
|
@property (nonatomic, copy) RCTDirectEventBlock onOrientationChange;
|
|
|
|
|
2015-07-28 07:31:26 -07:00
|
|
|
- (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
|
|
@end
|
2016-08-23 16:50:23 -07:00
|
|
|
|
|
|
|
@protocol RCTModalHostViewInteractor <NSObject>
|
|
|
|
|
|
|
|
- (void)presentModalHostView:(RCTModalHostView *)modalHostView withViewController:(RCTModalHostViewController *)viewController animated:(BOOL)animated;
|
|
|
|
- (void)dismissModalHostView:(RCTModalHostView *)modalHostView withViewController:(RCTModalHostViewController *)viewController animated:(BOOL)animated;
|
|
|
|
|
|
|
|
@end
|