expo: GL View not rendering or appearing in Image after screenshot

Hello, i want to take a screenshot with the images of threejs, but it’s not taking the object when i click on camera to take a photo, how to fix this?

It’s a bug ??? I’m testing in Android.

 _takeAndUploadPhotoAsync = async () => {
    
      

    let result = await Expo.GLView.takeSnapshotAsync(this.sate.object, {
        format: 'png', /// PNG because the view has a clear background
        quality: 1, /// high quality works 
        result: 'file',
        });
        
        console.log(result);

    let saveResult = await CameraRoll.saveToCameraRoll(result, 'photo');
    this.setState({ image: saveResult });

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (7 by maintainers)

Commits related to this issue

Most upvoted comments

@olympikesoft - please share a complete runnable example on https://snack.expo.io. @tsapeta knows all about this so you’re in good hands but there’s not much he can do without being able to reproduce the problem and a runnable example would help for that

tsapeta linked to some examples, plus all the code is in this repo and is a good place to look for more information beyond the docs site. If you’re looking for individual help or debugging, we’d be happy to put you in touch with a consultancy that can give you private, dedicated attention.