react-native-photo-editor icon indicating copy to clipboard operation
react-native-photo-editor copied to clipboard

Image Crop Issue

Open sqb47 opened this issue 3 years ago • 1 comments

image crop button is UN-clickable after first crop is done

sqb47 avatar Jul 26 '21 09:07 sqb47

Ok i solved this issue by adding a condition in startCropping method into /node_modules/react-native-photo-editor/android/src/main/java/com/ahmedadeltito/photoeditor/PhotoEditorActivity.java

       private void startCropping() {

          System.out.println(selectedImagePath);
          
          if (selectedImagePath.contains("file://")||selectedImagePath.contains("content://")) {
          
          selectedImagePath = getPath(Uri.parse(selectedImagePath));
          
          }

//Rest of code continue....

May hope it will help you so i am closing the issue now so i requested to prscX to check this and update it the git repo it will help to other developer also in Android who are stuck in this issue.

Thank you

memanoj avatar Apr 19 '22 08:04 memanoj