teslamotors / react-native-camera-kit

A high performance, easy to use, rock solid camera library for React Native apps.
MIT License
2.45k stars 585 forks source link

Not able to change width and height of camera view #335

Open rajscet opened 3 years ago

rajscet commented 3 years ago

Issue Description

[Not able to resize cameraview]

<CameraKitCamera ref={(cam) => (this.camera = cam)} cameraOptions={{ flashMode: 'off',

      }}
      style={{

        backgroundColor: colors.transperent,
        marginBottom: moderateScale(450),
        position: 'absolute',
        height:
          Dimensions.get('window').height -
          moderateScale(isIphoneX() ? 308 : 270),
        width: moderateScale(200),

      }}
      resetFocusTimeout={0}
      resetFocusWhenMotionDetected={true}
      saveToCameraRoll={false}
    />

[FILL THIS OUT - It will be extremely helpful]


Environment

faraznaqvi99 commented 3 years ago

following.

aarongrider commented 3 years ago

Will look into this.

Frknadgzl commented 3 years ago

any update here ?

renanmav commented 3 years ago

I'm not able to change width and height of the CameraScreen too (react-native-camera-kit@11.1.0)