Open marcoizzo opened 3 years ago
After more investigation, the issues seems to be systematic on iOS 11
Workaround is to add return nil; on top of the inputAccessoryView inside RNCWebView.m file of react-native-webview package but honestly I do not know what is the impact... I use this package only for the editor and seems work..
#if !TARGET_OS_OSX
// runtime trick to remove WKWebView keyboard default toolbar
// see: http://stackoverflow.com/questions/19033292/ios-7-uiwebview-keyboard-issue/19042279#19042279
@interface _SwizzleHelperWK : UIView
@property (nonatomic, copy) WKWebView *webView;
@end
@implementation _SwizzleHelperWK
-(id)inputAccessoryView
{
return nil; // <-- Add this here
if (_webView == nil) {
return nil;
}
if ([_webView respondsToSelector:@selector(inputAssistantItem)]) {
UITextInputAssistantItem *inputAssistantItem = [_webView inputAssistantItem];
inputAssistantItem.leadingBarButtonGroups = @[];
inputAssistantItem.trailingBarButtonGroups = @[];
}
return nil;
}
@end
#endif // !TARGET_OS_OSX
Hello,
thanks for this package, very useful! I'm facing crashes on iOS app in production, attached stack trace from firebase crashlytics and screen
Any idea on how to fix? Thanks