File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lib/ios/reactnativeuilib/keyboardtrackingview Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1010#import " ObservingInputAccessoryViewTemp.h"
1111#import " UIResponder+FirstResponderTemp.h"
1212
13+ #import < WebKit/WebKit.h>
1314#import < React/RCTScrollView.h>
1415#import < React/RCTBridge.h>
1516#import < React/RCTUIManager.h>
@@ -128,7 +129,7 @@ - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event {
128129 return subview;
129130}
130131
131- -(void )_swizzleWebViewInputAccessory : (UIWebView *)webview
132+ -(void )_swizzleWebViewInputAccessory : (WKWebView *)webview
132133{
133134 UIView* subview;
134135 for (UIView* view in webview.scrollView .subviews )
@@ -235,9 +236,9 @@ - (void)initializeAccessoryViewsAndHandleInsets
235236 {
236237 [self setupTextView: (UITextView*)subview];
237238 }
238- else if ([subview isKindOfClass: [UIWebView class ]])
239+ else if ([subview isKindOfClass: [WKWebView class ]])
239240 {
240- [self _swizzleWebViewInputAccessory: (UIWebView *)subview];
241+ [self _swizzleWebViewInputAccessory: (WKWebView *)subview];
241242 }
242243 }
243244
You can’t perform that action at this time.
0 commit comments