Просмотр исходного кода

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

ptrocki 6 лет назад
Родитель
Сommit
6e79f2a26f
1 измененных файлов: 1 добавлений и 0 удалений
  1. 1
    0
      ios/RNCWKWebView.m

+ 1
- 0
ios/RNCWKWebView.m Просмотреть файл

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