We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a test app with react-native-static-server rendering a local HTML file
for using JS, it works if I have the JS embedded in the HTML, but if I call it on a separate JS file it won't work...
in my App.tsx:
<WebView source={{uri:${origin}/${file}}} style={styles.webview} /> here is the embedded HTML:
<WebView source={{uri:
}} style={styles.webview} />
<button type="button" onclick="alabama();">Play</button> <button type="button" onclick="alert('Hello alabama')">music</button> <script src="./chusa.js"></script>
chusa.js:
function alabama() { alert('Hello alabama'); }
So, alert works, the function doesn't.
How can I call the script on a separate file?
Thanks in advance
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a test app with react-native-static-server rendering a local HTML file
for using JS, it works if I have the JS embedded in the HTML, but if I call it on a separate JS file it won't work...
in my App.tsx:
<WebView source={{uri:
${origin}/${file}}} style={styles.webview} />
here is the embedded HTML:
chusa.js:
So, alert works, the function doesn't.
How can I call the script on a separate file?
Thanks in advance
The text was updated successfully, but these errors were encountered: