question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot access local html in android

See original GitHub issue

react-native: 0.61.4 react-native-webview: 7.5.1 when i render echarts with webview,it is work in ios ,but it is issues in android image

image

` export default class WebViewDemo extends Component {

render() {
    return (
        <SafeAreaView style={{flex: 1}}>
            <WebView
                ref={el => this.webviewRel = el}
                originWhitelist={['*']}
                source={require('../h5/chart.html') }
            
            />
        </SafeAreaView>

    );
}

} `

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

4reactions
safaiyehcommented, Feb 17, 2020

Awesome! Glad it worked out.

0reactions
msqarcommented, Feb 17, 2020

@safaiyeh thanks man, it worked!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't Chrome read a local HTML file on Android? - Quora
Right click on the .html file and select open with Google chrome. Way 2 : Open Google Chrome ...
Read more >
Open HTML file on Android [duplicate] - Stack Overflow
1 Answer 1 · You can use a local web server in your Android phone itself. There are many server apps out there...
Read more >
Opening local HTML files (file:///path/to/file) in Chrome on ...
For Android 11 [One UI 3.1]​​ This means that on Android 11, the folder from which Chrome can read local (m)HTML is /Download...
Read more >
Android 11 can't read HTML files error message ACCESS TO ...
After I upgraded my Samsung phone to Android 11, I couldn't read any local HTML files using Google Chrome or Brave web browsers....
Read more >
Can't view local HTML files with Firefox on Android. - Reddit
This is baffles me. Tried opening a local HTML file today on my phone and the only choices were Chrome, HTML Viewer, and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found