react-native-navigation的迁移库

RNNOverlayOptions.m 516B

12345678910111213141516171819202122
  1. #import "RNNOverlayOptions.h"
  2. #import <React/RCTRootView.h>
  3. @implementation RNNOverlayOptions
  4. - (instancetype)initWithDict:(NSDictionary *)dict {
  5. self = [super init];
  6. self.interceptTouchOutside = [BoolParser parse:dict key:@"interceptTouchOutside"];
  7. return self;
  8. }
  9. - (void)applyOn:(UIViewController *)viewController {
  10. // if (self.interceptTouchOutside) {
  11. // RCTRootView* rootView = (RCTRootView*)viewController.view;
  12. // rootView.passThroughTouches = ![self.interceptTouchOutside boolValue];
  13. // }
  14. }
  15. @end