Bläddra i källkod

Update RNCWebView.m

Block methods relating to pull to refresh when the target is macOS as macOS does not have the UIRefreshControl
Brandon Lax 4 år sedan
förälder
incheckning
0ee28fa7c5
No account linked to committer's email address
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2
    2
      apple/RNCWebView.m

+ 2
- 2
apple/RNCWebView.m Visa fil

@@ -1127,7 +1127,7 @@ static NSDictionary* customCertificatesForHost;
1127 1127
     [_webView reload];
1128 1128
   }
1129 1129
 }
1130
-
1130
+#if !TARGET_OS_OSX
1131 1131
 - (void)addPullToRefreshControl
1132 1132
 {
1133 1133
     UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
@@ -1142,7 +1142,7 @@ static NSDictionary* customCertificatesForHost;
1142 1142
     [refreshControl endRefreshing];
1143 1143
 }
1144 1144
 
1145
-#if !TARGET_OS_OSX
1145
+
1146 1146
 - (void)setPullToRefreshEnabled:(BOOL)pullToRefreshEnabled
1147 1147
 {
1148 1148
     _pullToRefreshEnabled = pullToRefreshEnabled;