最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

react native - Expo Camera flash lights up for a second then turns off - Stack Overflow

programmeradmin4浏览0评论

I'm using SDK 52 (52.0.35) and expo-camera 16.0.16. Tried using enableTorch but it just doesn't work. Without enableTorch it's not working at all. With enableTorch it's working, but only with flash 'on' and not 'auto' and I also can't turn it off.

I want to use the flash 'auto' if possible, but right now I'd be happy if I could toggle it

  <CameraView
    barcodeScannerSettings={{
      barcodeTypes: ['aztec'....],
    }}
    onBarcodeScanned={(data) => GetScanData(data)}
    style={styles.camera}
  >
发布评论

评论列表(0)

  1. 暂无评论