소스 검색

ios unit test fixed

yogevbd 7 년 전
부모
커밋
6d37f28862
2개의 변경된 파일5개의 추가작업 그리고 3개의 파일을 삭제
  1. 1
    1
      lib/ios/RNNOverlayOptions.h
  2. 4
    2
      lib/ios/RNNOverlayOptions.m

+ 1
- 1
lib/ios/RNNOverlayOptions.h 파일 보기

@@ -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 파일 보기

@@ -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