Explorar el Código

Update RNCWebView.h

Limit methods relating to pull to refresh to only iOS
Brandon Lax hace 4 años
padre
commit
2edbb47d58
No account linked to committer's email address
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4
    0
      apple/RNCWebView.h

+ 4
- 0
apple/RNCWebView.h Ver fichero

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