Skip to content
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

baseUrl does not seem to work in source attribute #36

Open
sujayjaju opened this issue Oct 29, 2020 · 1 comment
Open

baseUrl does not seem to work in source attribute #36

sujayjaju opened this issue Oct 29, 2020 · 1 comment

Comments

@sujayjaju
Copy link

Example:

 		<WebView
 			originWhitelist={['*']}
 			mixedContentMode={'always'}
 			onMessage={onMessage}
 			javaScriptEnabled
 			automaticallyAdjustContentInsets
 			source={{
 				html: generateTheWebViewContent(),
 				baseUrl: `${url}`,
 			}}
 		/>

The baseUrl for the webview is returned as about:srcdoc

@tathagatatranslated
Copy link

tathagatatranslated commented Jul 26, 2021

If this is true, it may be what is causing the inability to display other languages or UTF8 chars within the web version of the WebView as well. - https://stackoverflow.com/questions/47989389/react-native-webview-android-arabic-text-showing-up-as-weird-character

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants