diff --git a/React/Views/RCTWebView.m b/React/Views/RCTWebView.m index 62823e278..596f87e96 100644 --- a/React/Views/RCTWebView.m +++ b/React/Views/RCTWebView.m @@ -52,6 +52,11 @@ static NSString *const kPostMessageHost = @"postMessage"; _contentInset = UIEdgeInsetsZero; _webView = [[UIWebView alloc] initWithFrame:self.bounds]; _webView.delegate = self; +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */ + if ([_webView.scrollView respondsToSelector:@selector(setContentInsetAdjustmentBehavior:)]) { + _webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; + } +#endif [self addSubview:_webView]; } return self;