2018-08-16 20:33:53 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the BSD-style license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
|
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <React/RCTView.h>
|
|
|
|
|
|
|
|
@class RCTWKWebView;
|
|
|
|
|
|
|
|
@protocol RCTWKWebViewDelegate <NSObject>
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface RCTWKWebView : RCTView
|
|
|
|
|
|
|
|
@property (nonatomic, weak) id<RCTWKWebViewDelegate> delegate;
|
|
|
|
@property (nonatomic, copy) NSDictionary *source;
|
2018-08-16 20:33:58 +00:00
|
|
|
@property (nonatomic, assign) BOOL messagingEnabled;
|
2018-08-16 20:33:55 +00:00
|
|
|
@property (nonatomic, copy) NSString *injectedJavaScript;
|
2018-08-16 20:34:05 +00:00
|
|
|
@property (nonatomic, assign) BOOL scrollEnabled;
|
2018-08-16 20:34:07 +00:00
|
|
|
@property (nonatomic, assign) CGFloat decelerationRate;
|
2018-08-16 20:33:53 +00:00
|
|
|
|
2018-08-16 20:33:58 +00:00
|
|
|
- (void)postMessage:(NSString *)message;
|
2018-08-16 20:34:09 +00:00
|
|
|
- (void)injectJavaScript:(NSString *)script;
|
2018-08-16 20:33:58 +00:00
|
|
|
|
2018-08-16 20:33:53 +00:00
|
|
|
@end
|