Woonivers / react-native-document-scanner

Document scanner, features live border detection, perspective correction, image filters and more ! 📲📸
MIT License
85 stars 71 forks source link

Camera flash doesn't turn on (iOS) #25

Open armin23615 opened 4 years ago

armin23615 commented 4 years ago

RN version: 0.60 @woonivers/react-native-document-scanner: 2.0.1

I have enableTorch={true} but flash doesn't turn on.

<DocumentScanner
        ref={(ref) => (this.scanner = ref)}
        style={styles.camera}
        onPictureTaken={(data) =>
          () => this.props.navigation.replace('ImageScreen', { image: data })
        }
        overlayColor="rgba(162,230,165, 0.7)"
        enableTorch={true}
        brightness={0.35}
        saturation={1}
        contrast={1.5}
        quality={1}
        detectionCountBeforeCapture={60000}
        detectionRefreshRateInMS={100}
      />
armin23615 commented 4 years ago

Any solution on this?

fukemy commented 2 years ago

no solution here, just change lib bro, this lib is dead already