Skip to content

Commit a91104b

Browse files
committed
webview: Replace UIWebView with WKWebView
React Native 0.57+ supports the new `WKWebView` iOS component in `WebView` instead of the legacy `UIWebView`. The UIWebView component is deprecated since iOS 12 https://developer.apple.com/documentation/uikit/uiwebview WKWebView is supported on iOS 8 and newer so that is not a concern. https://developer.apple.com/documentation/webkit/wkwebview An article on the `WKWebView` support in React Native here: http://facebook.github.io/react-native/blog/2018/08/27/wkwebview The change code-wise is trivial, I have tested it on an emulator and as epxected everything seems to be working correctly. We should do an extended TestFlight testing just in case. To reiterate, this is a iOS-specific change.
1 parent 08f09f3 commit a91104b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/webview/MessageList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ class MessageList extends Component<Props> {
176176

177177
return (
178178
<WebView
179+
useWebKit
179180
source={{
180181
baseUrl: auth.realm,
181182
html,

0 commit comments

Comments
 (0)