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.

captureScreen cannot render webview

See original GitHub issue

There are both common components and WebView in the page.captureScreen cannot render webview Component.

component:

screenshot:

captureScreen({ quality: 1 })
            .then(async uri => {
                CommonShare.show({ isCancleButton: false, contentImage: { uri: uri }, shareCallback: shareFun });
            })
            .catch(e => {
                Toast.show('分享失败', 500, { position: Toast.positions.BOTTOM });
            });

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
canyuegongzicommented, Nov 29, 2021

can replace canvas with svg

0reactions
junguksimcommented, Dec 15, 2022

Any solution for this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't capture the screenshot of a WKWebView - Stack Overflow
This Stackoverflow answer solved it for me on iOS 8 with a WKWebView where [view snapshotViewAfterScreenUpdates:] and [view.layer renderInContext:] either ...
Read more >
Screenshot from a WKWebView | Apple Developer Forums
I am trying to provide page previews like Apple's Print extension does. UIWebView uses too much memory; iOS kills the extension before the...
Read more >
What Is Android System WebView and Should You Uninstall It?
When Android System WebView is used to embed a login function, users are taken to a web login screen encased in the app....
Read more >
Screenshot from WebView - MSDN - Microsoft
Note Windows Phone: The contents of a WebView control can't be rendered into a RenderTargetBitmap. Edit: from your sample app you are targeting...
Read more >
Trying to take a screenshot of WebView but it gives just white
Based on your code, it looks like you're trying to take an image of a WebView that isn't displayed. We can't do this....
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