Przeglądaj źródła

ios unit test fixed

yogevbd 7 lat temu
rodzic
commit
6d37f28862
2 zmienionych plików z 5 dodań i 3 usunięć
  1. 1
    1
      lib/ios/RNNOverlayOptions.h
  2. 4
    2
      lib/ios/RNNOverlayOptions.m

+ 1
- 1
lib/ios/RNNOverlayOptions.h Wyświetl plik

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

+ 4
- 2
lib/ios/RNNOverlayOptions.m Wyświetl plik

4
 @implementation RNNOverlayOptions
4
 @implementation RNNOverlayOptions
5
 
5
 
6
 - (void)applyOn:(UIViewController *)viewController {
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
 @end
13
 @end