浏览代码

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 年前
父节点
当前提交
0ee28fa7c5
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      apple/RNCWebView.m

+ 2
- 2
apple/RNCWebView.m 查看文件

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