|  | @@ -49,6 +49,10 @@ static NSURLCredential* clientAuthenticationCredential;
 | 
	
		
			
			| 49 | 49 |    BOOL _isFullScreenVideoOpen;
 | 
	
		
			
			| 50 | 50 |    UIStatusBarStyle _savedStatusBarStyle;
 | 
	
		
			
			| 51 | 51 |    BOOL _savedStatusBarHidden;
 | 
	
		
			
			|  | 52 | +
 | 
	
		
			
			|  | 53 | +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
 | 
	
		
			
			|  | 54 | +  UIScrollViewContentInsetAdjustmentBehavior _savedContentInsetAdjustmentBehavior;
 | 
	
		
			
			|  | 55 | +#endif
 | 
	
		
			
			| 52 | 56 |  }
 | 
	
		
			
			| 53 | 57 |  
 | 
	
		
			
			| 54 | 58 |  - (instancetype)initWithFrame:(CGRect)frame
 | 
	
	
		
			
			|  | @@ -65,6 +69,10 @@ static NSURLCredential* clientAuthenticationCredential;
 | 
	
		
			
			| 65 | 69 |      _savedKeyboardDisplayRequiresUserAction = YES;
 | 
	
		
			
			| 66 | 70 |      _savedStatusBarStyle = RCTSharedApplication().statusBarStyle;
 | 
	
		
			
			| 67 | 71 |      _savedStatusBarHidden = RCTSharedApplication().statusBarHidden;
 | 
	
		
			
			|  | 72 | +
 | 
	
		
			
			|  | 73 | +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
 | 
	
		
			
			|  | 74 | +    _savedContentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
 | 
	
		
			
			|  | 75 | +#endif
 | 
	
		
			
			| 68 | 76 |    }
 | 
	
		
			
			| 69 | 77 |  
 | 
	
		
			
			| 70 | 78 |    if (@available(iOS 12.0, *)) {
 | 
	
	
		
			
			|  | @@ -227,7 +235,7 @@ static NSURLCredential* clientAuthenticationCredential;
 | 
	
		
			
			| 227 | 235 |      }
 | 
	
		
			
			| 228 | 236 |  #if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
 | 
	
		
			
			| 229 | 237 |      if ([_webView.scrollView respondsToSelector:@selector(setContentInsetAdjustmentBehavior:)]) {
 | 
	
		
			
			| 230 |  | -      _webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
 | 
	
		
			
			|  | 238 | +      _webView.scrollView.contentInsetAdjustmentBehavior = _savedContentInsetAdjustmentBehavior;
 | 
	
		
			
			| 231 | 239 |      }
 | 
	
		
			
			| 232 | 240 |  #endif
 | 
	
		
			
			| 233 | 241 |  
 | 
	
	
		
			
			|  | @@ -328,6 +336,22 @@ static NSURLCredential* clientAuthenticationCredential;
 | 
	
		
			
			| 328 | 336 |    _webView.backgroundColor = backgroundColor;
 | 
	
		
			
			| 329 | 337 |  }
 | 
	
		
			
			| 330 | 338 |  
 | 
	
		
			
			|  | 339 | +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000 /* __IPHONE_11_0 */
 | 
	
		
			
			|  | 340 | +- (void)setContentInsetAdjustmentBehavior:(UIScrollViewContentInsetAdjustmentBehavior)behavior
 | 
	
		
			
			|  | 341 | +{
 | 
	
		
			
			|  | 342 | +    _savedContentInsetAdjustmentBehavior = behavior;
 | 
	
		
			
			|  | 343 | +    if (_webView == nil) {
 | 
	
		
			
			|  | 344 | +        return;
 | 
	
		
			
			|  | 345 | +    }
 | 
	
		
			
			|  | 346 | +
 | 
	
		
			
			|  | 347 | +    if ([_webView.scrollView respondsToSelector:@selector(setContentInsetAdjustmentBehavior:)]) {
 | 
	
		
			
			|  | 348 | +        CGPoint contentOffset = _webView.scrollView.contentOffset;
 | 
	
		
			
			|  | 349 | +        _webView.scrollView.contentInsetAdjustmentBehavior = behavior;
 | 
	
		
			
			|  | 350 | +        _webView.scrollView.contentOffset = contentOffset;
 | 
	
		
			
			|  | 351 | +    }
 | 
	
		
			
			|  | 352 | +}
 | 
	
		
			
			|  | 353 | +#endif
 | 
	
		
			
			|  | 354 | +
 | 
	
		
			
			| 331 | 355 |  /**
 | 
	
		
			
			| 332 | 356 |   * This method is called whenever JavaScript running within the web view calls:
 | 
	
		
			
			| 333 | 357 |   *   - window.webkit.messageHandlers[MessageHandlerName].postMessage
 |