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 "RCTViewManager.h"
|
|
|
|
|
2015-08-13 16:09:10 +00:00
|
|
|
#import "RCTInvalidating.h"
|
|
|
|
|
2016-08-23 23:50:23 +00:00
|
|
|
typedef void (^RCTModalViewInteractionBlock)(UIViewController *reactViewController, UIViewController *viewController, BOOL animated, dispatch_block_t completionBlock);
|
|
|
|
|
2015-08-13 16:09:10 +00:00
|
|
|
@interface RCTModalHostViewManager : RCTViewManager <RCTInvalidating>
|
2015-07-28 14:31:26 +00:00
|
|
|
|
2016-08-23 23:50:23 +00:00
|
|
|
/**
|
|
|
|
* `presentationBlock` and `dismissalBlock` allow you to control how a Modal interacts with your case,
|
|
|
|
* e.g. in case you have a native navigator that has its own way to display a modal.
|
|
|
|
* If these are not specified, it falls back to the UIViewController standard way of presenting.
|
|
|
|
*/
|
|
|
|
@property (nonatomic, strong) RCTModalViewInteractionBlock presentationBlock;
|
|
|
|
@property (nonatomic, strong) RCTModalViewInteractionBlock dismissalBlock;
|
|
|
|
|
2015-07-28 14:31:26 +00:00
|
|
|
@end
|