Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 29639

React Native View Shot fails when Camera is authorized

$
0
0

I am having an issue with the captureScreen() function of React-Native-View-Shot.

captureScreen({
        format: "jpg",
        quality: 0.8
      }).then(
        uri => console.log(uri),
        error => console.error("Oops, snapshot failed", error)
      );

If React-Native-Camera authorizes it causes my screen capture to fail. However, if the camera is unauthorized it captures successfully.

My packages:

"react": "16.8.3",
"react-native": "0.59.10",
"react-native-camera": "^1.1.4",
"react-native-view-shot": "^2.5.0",

All help is greatly appreciated!


Viewing all articles
Browse latest Browse all 29639


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>