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

WebView can load local htmlfile ,But can't load local script file #25413

Closed
Ruanyang2015 opened this issue Jun 27, 2019 · 3 comments
Closed

WebView can load local htmlfile ,But can't load local script file #25413

Ruanyang2015 opened this issue Jun 27, 2019 · 3 comments
Labels
Bug Component: WebView Related to the WebView component. Resolution: Locked This issue was locked by the bot.

Comments

@Ruanyang2015
Copy link

WebView can load local htmlfile ,But can't load local script file

image

  • React Native Code

image

React Native version:

 "react": "16.8.3",
"react-native": "0.59.9",
"react-native-webview": "^5.12.0"

Steps To Reproduce

I want to load local html file that include js src like this---<script type="text/javascript" src="test.js"></script>

But it can't load the contents of js that content is "alert("郭跃");"

@react-native-bot react-native-bot added the Component: WebView Related to the WebView component. label Jun 27, 2019
@dulmandakh
Copy link
Contributor

@Ruanyang2015
Copy link
Author

I use the WebView from react-native to be exactly the same error.

@dulmandakh
Copy link
Contributor

WebView is been deprecated for a while, and removed in 0.60. Please use react-native-webview, and file an issue there.

@facebook facebook locked as resolved and limited conversation to collaborators Jun 27, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Component: WebView Related to the WebView component. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants