Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230107

Ionic camera with overlays - camera view is black

$
0
0

Try adding this to global.scss:

scss

CopyEdit

body.camera-active {
  --background: transparent;
  --ion-background-color: transparent;
}

Then, add the class when the camera is active:

typescript

CopyEdit

document.body.classList.add('camera-active');

It should resolve the black screen issue.


Viewing all articles
Browse latest Browse all 230107

Trending Articles



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