Browse Source

Simplified another #if/def

Tom Underhill 4 years ago
parent
commit
3775db83c1
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      ios/RNCWebView.m

+ 2
- 2
ios/RNCWebView.m View File

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