-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate RCTWebView to WKWebView. #16792
Conversation
Is there some way to test/fix the flow check locally? I did not change any JavaScript code in this PR, so I am not sure how this broke it. node 6:
and node 8:
|
This looks really awesome. Thanks for working on it. BTW, not only is
|
ca5d6f6
to
4fe455f
Compare
Thanks @randyzhao! I'd love to hear any issues that you (or anyone else) run into with the WKWebView version of RCTWebView. |
Thanks for the PR. It's quite big, so let me get attention from few more people. CC: @ide - I think there was an idea of moving WebView outside of React Native as its not extensively used at Facebook? If not, apologies, I probably confused that with another component. |
@grabbou possibly, since we'd like to increase the React Native repo's focus on truly core parts like the C++ bridge. |
@bowerman0 I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project. |
@facebook-github-bot large-pr Attention: @shergin Generated by 🚫 dangerJS |
That's my understanding. Also, there's already quite interesting community implementation, called |
@bowerman0 @grabbou @ide one reason I'd like to see this hit rn is so that expo will have it without having to eject. So either it'd need to be supported by the expo team (they pull in some modules like this I guess) or it'd have to go in here (in order to use it in expo without ejecting). https://expo.canny.io/feature-requests/p/wkwebview-support - as you can see the request is pretty low in priority :/ |
Any updates from the React team on this? This is a crucial part of my app and it would be awesome to not have to eject my expo app. |
I am pretty sure WebView will remain part of Expo regardless, but you can
ask this on their support forum just in case :)
…On Fri, 9 Feb 2018 at 02:04 James Heald ***@***.***> wrote:
Any updates from the React team on this? This is a crucial part of my app
and it would be awesome to *not* have to eject my expo app.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16792 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACWcxjv5Otn7o2J2gjSh1rxIL_qEFpyQks5tS5mPgaJpZM4QaUMH>
.
|
@bowerman0 I tried to find reviewers for this pull request and wanted to ping them to take another look. However, based on the blame information for the files in this pull request I couldn't find any reviewers. This sometimes happens when the files in the pull request are new or don't exist on master anymore. Is this pull request still relevant? If yes could you please rebase? In case you know who has context on this code feel free to mention them in a comment (one person is fine). Thanks for reading and hope you will continue contributing to the project. |
@grabbou sadly they aren't supportive of implementing it :( . Hopefully React Native gets it soon! Especially as WebView on iOS is buggy slow and I also wonder about how secure it is given its deprecated since iOS 8. |
Any updates for this pr? |
A new |
…ted UIWebView error from app store - Problem - Email after upload: `ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs` - Our react-native is really old and still has RCTWebView - Solution - Rip out RCTWebView - `find node_modules/react-native/ | grep RCTWebView | xargs trash` - From facebook/react-native#26255 (comment) - Future react-native versions move WebView out to https://github.com/react-native-community/react-native-webview - facebook/react-native#16792 (comment)
Motivation
#321 - Use WKWebView instead of UIWebView, because WKWebView is faster, consumes less memory, and is more stable.
This is meant to be a drop-in replacement for the existing UIWebView-based RCTWebView.
Test Plan
Used a web view loosely based on RNTester's WebViewExample.js, and tested in an ejected AwesomeProject. Browsed around the internet.
Release Notes
[IOS][ENHANCEMENT][RCTWebView] - Migrate RCTWebView to use WKWebView instead of UIWebView.