react-native-camera-kit icon indicating copy to clipboard operation
react-native-camera-kit copied to clipboard

How to enable zoom?

Open Cygnus2112 opened this issue 10 years ago • 10 comments

Hello! Thanks you for building a marvelous React Native component. I've been experimenting with it in an android app I'm building and for some reason can't get zoom to work. My implementation is pretty much the same as the example:

<CameraKitCamera
        ref={(cam) => { this.camera = cam; }}
        style={{flex: 1, backgroundColor:'white'}}
        cameraOptions={{
              flashMode: 'auto',       // on/off/auto(default)
              focusMode: 'on',         // off/on(default)
              zoomMode: 'on',         // off/on(default)
        }}/>

Is there something I am missing? I would love some help/guidance. Thanks!

Cygnus2112 avatar Nov 20 '16 15:11 Cygnus2112

@Cygnus2112 Thanks for the good words :) The zoom option works for u in the example project?

gran33 avatar Nov 29 '16 09:11 gran33

Hi! Unfortunately, zoomMode does not work for me in the example project. Everything else seems to work perfectly, but not zoom. (I am using android.)

Cygnus2112 avatar Nov 29 '16 15:11 Cygnus2112

@gran33 @cygnus2112 I have the same issue

filipef101 avatar Mar 02 '18 01:03 filipef101

Hi any updates on this. The camera is always zoomed in for my app, which is causing issues. Any advice?

mfharding1 avatar Aug 16 '18 04:08 mfharding1

@gran33 @Cygnus2112 ??? Any updates?

mfharding1 avatar Aug 24 '18 22:08 mfharding1

same issue.. any update??

valdman40 avatar Sep 22 '19 10:09 valdman40

hi. I am also having issues with the zoom on android

// package.json "react-native-camera-kit": "^8.0.1",

<CameraKitCameraScreen
  style={{
    flex: 1,
    backgroundColor: '#000'
  }}
  scanBarcode
  laserColor={Colors.brand}
  frameColor={Colors.brand}
  cameraOptions={{
    flashMode: 'auto', // on/off/auto(default)
    focusMode: 'on', // off/on(default)
    zoomMode: 'on', // off/on(default)
  }}
  onReadCode={(event) => this.delayedBarCodeRead(event.nativeEvent.codeStringValue)}
  hideControls={false}
  showFrame
/>

I have zoomMode: 'on', but it is only working on iOS. Android does nothing.

cristian-milea avatar Sep 25 '19 18:09 cristian-milea

there is nothing containing "zoom" in this library android folder...

cristian-milea avatar Sep 25 '19 22:09 cristian-milea

anyone found any solution?

sourabhkhandelwal099 avatar Jan 04 '24 13:01 sourabhkhandelwal099

We are waiting for zoom, any update for zoom feature? @aarongrider

CMLCNL avatar Jan 31 '24 15:01 CMLCNL