Browse Source

ios unit test fixed

yogevbd 7 years ago
parent
commit
6d37f28862
2 changed files with 5 additions and 3 deletions
  1. 1
    1
      lib/ios/RNNOverlayOptions.h
  2. 4
    2
      lib/ios/RNNOverlayOptions.m

+ 1
- 1
lib/ios/RNNOverlayOptions.h View File

@@ -2,6 +2,6 @@
2 2
 
3 3
 @interface RNNOverlayOptions : RNNOptions
4 4
 
5
-@property (nonatomic) BOOL interceptTouches;
5
+@property (nonatomic, strong) NSNumber* interceptTouches;
6 6
 
7 7
 @end

+ 4
- 2
lib/ios/RNNOverlayOptions.m View File

@@ -4,8 +4,10 @@
4 4
 @implementation RNNOverlayOptions
5 5
 
6 6
 - (void)applyOn:(UIViewController *)viewController {
7
-	RCTRootView* rootView = (RCTRootView*)viewController.view;
8
-	rootView.passThroughTouches = !self.interceptTouches;
7
+	if (self.interceptTouches) {
8
+		RCTRootView* rootView = (RCTRootView*)viewController.view;
9
+		rootView.passThroughTouches = ![self.interceptTouches boolValue];
10
+	}
9 11
 }
10 12
 
11 13
 @end