Home Code Introducing new iOS WebViews · React Native

Introducing new iOS WebViews · React Native

by TM

For a long time now, Apple has discouraged using UIWebViews in favor of WKWebView. In iOS 12, UIWebViews will be formally deprecated. React Native’s iOS WebView implementation heavily relies on the UIWebView class. To address this, a new native iOS backend has been built for the WebView React Native component, which utilizes WKWebView. The changes will be available in the 0.57 release, and to opt into this new implementation, the useWebKit prop should be used. The improvements include a legitimate way to facilitate communication between JavaScript and React Native, faster JavaScript execution, and a multi-process architecture. However, there are some caveats to consider when switching to WKWebView, including inconsistent behavior with certain props and the lack of support for the scalesPageToFit prop. To learn more, please read the full article from the original source.

Meta Data: {“keywords”:”Apple, UIWebViews, WKWebView, iOS 12, React Native, WebView component”}

Source link

You may also like

Leave a Comment

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
-
00:00
00:00
Update Required Flash plugin
-
00:00
00:00