Browse Source

Update RNCWebView.h

Limit methods relating to pull to refresh to only iOS
Brandon Lax 4 years ago
parent
commit
2edbb47d58
No account linked to committer's email address
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      apple/RNCWebView.h

+ 4
- 0
apple/RNCWebView.h View File

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