You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice if there were a way to use WKWebView instead of UIWebView when using the <WebView> component, as WKWebView has substantial performance benefits.
@drkibitz What kinds of problem? The only thing I can think of is that it requires iOS 8. Maybe we can choose UIWebView when on iOS 7 and lower, otherwise use WKWebKit.
While still buggy, it looks like Telerik has implemented a WKWebView plugin for Cordova that gracefully degrades to UIWebView in <= iOS 7. I agree with @vjeux that we could go ahead and split the components, setting the stage for a workingWKWebView.
I agree in principle but my understanding is that UIWebView is preferable only if you need a synchronous API (or need to do low-level configuration), neither of which are super compelling reasons from the JS side. I'm okay either way I guess but the UIWebView/WKWebView vs WebViewIOS/WKWebViewIOS suggested naming is odd to me.
Isn't there still an issue with WKWebView in that it cannot load from a local resource, it has to load over http? Telerik included a mini-http server in the Cordova plugin to workaround this issue, as far as I remember. Just mentioning, as it may not be as simple as a drop-in replacement.
@hramos any word on if there are going to be instructions on building on iOS from source anytime soon? I would love to poke around on this and other issues, but as I believe we discussed before, the only instructions to build from source are for Android and they are here https://facebook.github.io/react-native/docs/building-from-source.html. Am I missing something? Are there any guides for building from source for iOS?
👋 related to this whole WebView topic, just wanted to let you know that "something is moving": within the core we decided to try an planning an "extraction" of this component into its own separate repo for easier maintenance.
Activity
drkibitz commentedon Mar 27, 2015
It also comes with problems. Would like to differentiate between the 2 as separate components.
LinusU commentedon Mar 27, 2015
@drkibitz What kinds of problem? The only thing I can think of is that it requires iOS 8. Maybe we can choose
UIWebViewwhen on iOS 7 and lower, otherwise useWKWebKit.gabro commentedon Mar 27, 2015
WKWebViewis known to be "broken" or at least unfinished. Here's a relevant thread about why (for instance) Google Chrome for iOS still usesUIWebView: https://code.google.com/p/chromium/issues/detail?id=423444A relevant fragment of the discussion:
vjeux commentedon Mar 27, 2015
We should have WebViewIOS and WKWebViewIOS instead of a generic WebView component. Anyone up for the renaming and providing both implementations?
chandlervdw commentedon Mar 31, 2015
While still buggy, it looks like Telerik has implemented a
WKWebViewplugin for Cordova that gracefully degrades toUIWebViewin <= iOS 7. I agree with @vjeux that we could go ahead and split the components, setting the stage for a workingWKWebView.jaygarcia commentedon Mar 31, 2015
+1 on @vjeux's suggestion.
sophiebits commentedon Mar 31, 2015
Why do we need both?
vjeux commentedon Mar 31, 2015
@spicyj we should be able to expose all the platform features and let the developer pick the one that makes sense for their use case.
sophiebits commentedon Mar 31, 2015
I agree in principle but my understanding is that UIWebView is preferable only if you need a synchronous API (or need to do low-level configuration), neither of which are super compelling reasons from the JS side. I'm okay either way I guess but the
UIWebView/WKWebViewvsWebViewIOS/WKWebViewIOSsuggested naming is odd to me.joewood commentedon Mar 31, 2015
Isn't there still an issue with WKWebView in that it cannot load from a local resource, it has to load over http? Telerik included a mini-http server in the Cordova plugin to workaround this issue, as far as I remember. Just mentioning, as it may not be as simple as a drop-in replacement.
mydearxym commentedon May 11, 2015
+1 I use Semantic-ui to build my mobile app on iOS , and it kind of slow , maybe the WKWebView will speed it up
koenbok commentedon May 15, 2015
Does anyone happen to know if the JIT is enabled in JSContext on desktop?
brentvatne commentedon May 30, 2015
^ cc @ide
[-]Use WKWebView instead of UIWebView[/-][+][WebView] Use WKWebView instead of UIWebView[/+]50 remaining items
amloelxer commentedon Jun 19, 2018
@hramos any word on if there are going to be instructions on building on iOS from source anytime soon? I would love to poke around on this and other issues, but as I believe we discussed before, the only instructions to build from source are for Android and they are here https://facebook.github.io/react-native/docs/building-from-source.html. Am I missing something? Are there any guides for building from source for iOS?
amloelxer commentedon Jun 19, 2018
Also/ or if someone could explain it to me, I would be happy to make a PR to the docs
ckknight commentedon Jul 10, 2018
I opened this issue over 3 years ago. The lack of action on it has once again blocked a major feature.
smathson commentedon Jul 10, 2018
@ckknight If lack of action is blocking a major feature for you, consider using https://github.com/CRAlpha/react-native-wkwebview. We are using it in production with no problems.
kelset commentedon Jul 31, 2018
👋 related to this whole
WebViewtopic, just wanted to let you know that "something is moving": within the core we decided to try an planning an "extraction" of this component into its own separate repo for easier maintenance.You can follow along and give feedback here: react-native-community/discussions-and-proposals#3
jamonholmgren commentedon Sep 10, 2018
Because https://github.com/react-native-community/react-native-webview uses WKWebView by default, I'm not planning to migrate this issue over there. This issue can probably be closed.
kelset commentedon Sep 10, 2018
Sounds good to me - closing
luisnaranjo733 commentedon Sep 10, 2018
Should we consider WebView to be officially deprecated from RN and migrated to react-native-community?
kelset commentedon Sep 10, 2018
Basically, yes. It will be properly announced when 0.57.0 is released but yeah, that's what will happen.
auto build + add to git versionned js