react-native-navigation的迁移库

RNNOverlayWindow.m 371B

12345678910111213141516
  1. #import "RNNOverlayWindow.h"
  2. @implementation RNNOverlayWindow
  3. - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
  4. UIView *hitTestResult = [super hitTest:point withEvent:event];
  5. if ([hitTestResult isKindOfClass:[UIWindow class]] || [hitTestResult isMemberOfClass:UIView.class]) {
  6. return nil;
  7. }
  8. return hitTestResult;
  9. }
  10. @end