Files
react-navigation/ios/RNSScreen.h
Krzysztof Magiera 5893d9a8a7 Restore first responder of view controller when screen reactivates (#48)
This change automates first responder restoring when screen is deactivated and the activated back (e.g. when we push new screen on top and then go back). In addition we disable pointerEvent setting for the Screen component as changes made to that prop would cause underlying views to resign responder before we can remember it. Because of that we add an automatic handling for pointer events for the Screen component that disables all touch interactions when screen is transitioning.
2018-12-20 08:44:01 +01:00

23 lines
525 B
Objective-C

#import <React/RCTViewManager.h>
#import <React/RCTView.h>
#import "RNSScreenContainer.h"
@class RNSScreenContainerView;
@interface RNSScreenManager : RCTViewManager
@end
@interface RNSScreenView : RCTView <RCTInvalidating>
@property (weak, nonatomic) UIView<RNSScreenContainerDelegate> *reactSuperview;
@property (nonatomic, retain) UIViewController *controller;
@property (nonatomic) BOOL active;
- (void)notifyFinishTransitioning;
@end
@interface UIView (RNSScreen)
- (UIViewController *)parentViewController;
@end