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

Taking a screenshot on the Android's webView shows a black screen. #2499

Open
archieWu opened this issue Jun 27, 2024 · 8 comments
Open

Taking a screenshot on the Android's webView shows a black screen. #2499

archieWu opened this issue Jun 27, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@archieWu
Copy link

Description

Taking a screenshot on the Android's webView shows a black screen.
But it works fine on iOS.

Version

v1.3.6

Steps to reproduce

makeImageFromView with webView on Android

Snack, code example, screenshot, or link to a repository

snack

@archieWu archieWu added the bug Something isn't working label Jun 27, 2024
@ckswopnera
Copy link

ckswopnera commented Jun 28, 2024

same here. for ios it is working fine. for android it is giving me a white screen. if I console encodeToBase64() then it giving me iVBORw0KGgoAAAANSUhEUgAABDgAAAhPCAYAAAA9lzuCAAAABHNCSVQICAgIfAhkiAAAIABJREFUeJzs2EENACAQwDDAv+dDBA+ypFWw9/bMzAIAAAAIO78DAAAAAF4ZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAnsEBAAAA5BkcAAAAQJ7BAQAAAOQZHAAAAECewQEAAADkGRwAAABAn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ALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAnOAAAAIA9wQEAAADsCQ4AAABgT3AAAAAAe4IDAAAA2BMcAAAAwJ7gAAAAAPYEBwAAALAXeJYUmlKIcOQAAAAASUVORK5CYII=
which is basically a white screen.

@wcandillon
Copy link
Contributor

wcandillon commented Jun 28, 2024 via email

@archieWu
Copy link
Author

react-native-view-shot can work webview snapshotting on iOS.
but it can't work on Android.
In Android, react-native-view-shot does nothing and does not show any error logs.
Even though it's not being used in a webview.

@ckswopnera
Copy link

ckswopnera commented Jun 28, 2024

import ViewShot from 'react-native-view-shot';    
  const [saveImage, setsaveImage] = useState(null)

 <Button
        title="Capture"
        onPress={() => {
          viewRef.current.capture().then(uri => {
            console.log('do something with ', uri);
            setsaveImage(uri)
          });
        }}
      />
      <ViewShot ref={viewRef} style={{flex:1}}>
        <WebView
          source={{
            uri: 'https://www.google.com/',
          }}
        />
      </ViewShot>

      <Image source={{uri:saveImage}} 
         style={{
            borderColor: 'red',
            borderWidth: 1,
            margin: 8,
            height: containerHeight,
            width: containerWidth,
            bottom: 55,
            left: 15,
            position: 'absolute',
            zIndex: 9999,
          }}/>
    </View>

This working perfectly on Android

Screenshot_1719560109

@archieWu
Copy link
Author

Is your React-Native version up to 0.7x?
I see not only one person React-Native version up to 0.7x
then not working on Android.
I am in the same situation.

@ckswopnera
Copy link

ckswopnera commented Jun 28, 2024

yes. "react-native": "0.74.2",
But One issue. no screenshot will be captured in the video area if I use react-native-view-shot in android
sample:
Screenshot_1719570069

But If I use skia for taking screenshot in ios then it is working fine.
sample:
Simulator Screenshot - iPhone 15 Pro - 2024-06-28 at 15 41 38

@archieWu
Copy link
Author

I see it's work on "react-native": "0.74.2"
but it can't work on "react-native": "0.72.4",
maybe I should upgrade my app to the version "0.74.2"
thanks you

@archieWu
Copy link
Author

archieWu commented Jul 1, 2024

Hello @wcandillon It's work on react-native-view-shot
maybe this can help you fix this bug on react-native-skia
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants