Adjust cropper instead of image zoom react native image crop picker

44
December 06, 2018, at 3:30 PM

I am trying to adjust the cropper instead of zoom in and zoom out of image.

I am using react-native-image-crop-picker. I want the cropper to move rather than the image clicked.

Here is my code:

imageCropView(){
    ImagePicker.openCropper({
      hideBottomControls:true,
      path: this.state.path,
      width: 300,
      height: 400
    }).then(image => {
      console.log(image);
      this.setState({
        path:image.path
      },()=>{
        let arr = this.state.imagesArr;
        arr.push(this.state.path);
        this.setState({
          imagesArr:arr,path:null
        })
      })
    });
  }
Answer 1

done by using the property:

freeStyleCropEnabled to true

READ ALSO
how can we create android application for existing website…what methods can be used

how can we create android application for existing website…what methods can be used

I am trying to build an app for my site but I don't have any idea how to startI want the app to update the details for the user in the website also when user update in app like account details should web view or any other method

21
looping through grid elements

looping through grid elements

I am trying to make a simple tic tac toe gameI have already written the logic for deciding who has won and a text field displays the winner

45
Google Pay(Tez) Integration into my payment gateway? (Xamarin.Android)

Google Pay(Tez) Integration into my payment gateway? (Xamarin.Android)

Note : I am aware it is not yet available for iOS, Also i am not looking for XamarinForms(Obviously)

40
Trying to use liquibase on Percona gives error

Trying to use liquibase on Percona gives error

I am trying to generateChangeLog for a db on a percona server, i get the below error when i try to do so

15