-
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
about WebView, when set 'baseUrl', only show html source string. #9835
Comments
@facebook-github-bot label Icebox |
Hi there! This issue is being closed because it has been inactive for a while. But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/about-webview-when-set-baseurl-only-show-html-source-string ProductPains helps the community prioritize the most important issues thanks to its voting feature. Also, if this issue is a bug, please consider sending a PR with a fix. |
@facebook-github-bot close |
@charpeni tells me to close this issue. If you think it should still be opened let us know why. |
Summary: Resolves #11753 and #9835. Android versions 4.1-4.3 don't understand the MIME type `text/html; charset=utf-8` and default to `text/plain` instead, rendering the content as an unparsed HTML string. Since the encoding is already set and passed separately, removing it from the MIME type has no negative effects. The same fix has already been discussed, successfully tested and incorporated in NativeScript/NativeScript#1038. Closes #13789 Differential Revision: D5971910 Pulled By: shergin fbshipit-source-id: 07795bdf0f13ddb1e8eec779d1cad59244f3687e
Whether it is the issue of bug:
http://stackoverflow.com/questions/39396716/react-native-webviewwhen-add-baserrl-then-just-show-html-string
when set 'baseUrl', only show html source string.
but this control is works:
https://github.com/lucasferreira/react-native-webview-android
The text was updated successfully, but these errors were encountered: