diff --git a/React/Views/RCTWebView.m b/React/Views/RCTWebView.m index 62823e27813193..596f87e9680330 100644 --- a/React/Views/RCTWebView.m +++ b/React/Views/RCTWebView.m @@ -52,6 +52,11 @@ - (instancetype)initWithFrame:(CGRect)frame _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;