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