skip to Main Content

i am using react-native-image-crop-picker library as camera but when i open camera getting chooser option to select any one camera app i want to directly open default camera without showing chooser options from react native

2

Answers


  1. You can use this:

    ImagePicker.openCamera({
      width: 300,
      height: 400,
      cropping: true,
    }).then(image => {
     console.log(image);
    });
    
    Login or Signup to reply.
  2. You can directly invoke the function provided by react-native-image-crop
    it is called openCamera for camera opening
    you can use it as the following

    ImagePicker.openCamera({
     ...your camera config
    }).then(image => {
      console.log(image);
    });
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search