소스 검색

Simplified another #if/def

Tom Underhill 5 년 전
부모
커밋
3775db83c1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      ios/RNCWebView.m

+ 2
- 2
ios/RNCWebView.m 파일 보기

1186
   [_webView stopLoading];
1186
   [_webView stopLoading];
1187
 }
1187
 }
1188
 
1188
 
1189
+#if !TARGET_OS_OSX
1189
 - (void)setBounces:(BOOL)bounces
1190
 - (void)setBounces:(BOOL)bounces
1190
 {
1191
 {
1191
   _bounces = bounces;
1192
   _bounces = bounces;
1192
-#if !TARGET_OS_OSX
1193
   _webView.scrollView.bounces = bounces;
1193
   _webView.scrollView.bounces = bounces;
1194
-#endif // !TARGET_OS_OSX
1195
 }
1194
 }
1195
+#endif // !TARGET_OS_OSX
1196
 
1196
 
1197
 - (NSURLRequest *)requestForSource:(id)json {
1197
 - (NSURLRequest *)requestForSource:(id)json {
1198
   NSURLRequest *request = [RCTConvert NSURLRequest:self.source];
1198
   NSURLRequest *request = [RCTConvert NSURLRequest:self.source];