浏览代码

Update RNCWebView.h

Limit methods relating to pull to refresh to only iOS
Brandon Lax 4 年前
父节点
当前提交
2edbb47d58
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      apple/RNCWebView.h

+ 4
- 0
apple/RNCWebView.h 查看文件

@@ -63,7 +63,9 @@
63 63
 @property (nonatomic, assign) BOOL ignoreSilentHardwareSwitch;
64 64
 @property (nonatomic, copy) NSString * _Nullable allowingReadAccessToURL;
65 65
 @property (nonatomic, assign) BOOL pullToRefreshEnabled;
66
+#if !TARGET_OS_OSX
66 67
 @property (nonatomic, weak) UIRefreshControl * refreshControl;
68
+#endif
67 69
 
68 70
 #if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 130000 /* iOS 13 */
69 71
 @property (nonatomic, assign) WKContentMode contentMode;
@@ -77,7 +79,9 @@
77 79
 - (void)goBack;
78 80
 - (void)reload;
79 81
 - (void)stopLoading;
82
+#if !TARGET_OS_OSX
80 83
 - (void)addPullToRefreshControl;
81 84
 - (void)pullToRefresh:(UIRefreshControl *)refreshControl;
85
+#endif
82 86
 
83 87
 @end