Ver código fonte

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 anos atrás
pai
commit
0ee28fa7c5
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2
    2
      apple/RNCWebView.m

+ 2
- 2
apple/RNCWebView.m Ver arquivo

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;