소스 검색

Update RNCWebView.m

Block methods relating to pull to refresh when the target is macOS as macOS does not have the UIRefreshControl
Brandon Lax 5 년 전
부모
커밋
0ee28fa7c5
No account linked to committer's email address
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2
    2
      apple/RNCWebView.m

+ 2
- 2
apple/RNCWebView.m 파일 보기

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;