Browse Source

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 years ago
parent
commit
0ee28fa7c5
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      apple/RNCWebView.m

+ 2
- 2
apple/RNCWebView.m View File

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