Browse Source

fix(iOS WKWebView): contentInset not properly applied (#603)

ptrocki 5 years ago
parent
commit
6e79f2a26f
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      ios/RNCWKWebView.m

+ 1
- 0
ios/RNCWKWebView.m View File

@@ -574,6 +574,7 @@ static NSURLCredential* clientAuthenticationCredential;
574 574
 
575 575
   // Ensure webview takes the position and dimensions of RNCWKWebView
576 576
   _webView.frame = self.bounds;
577
+  _webView.scrollView.contentInset = _contentInset;
577 578
 }
578 579
 
579 580
 - (NSMutableDictionary<NSString *, id> *)baseEvent