prscX / react-native-photo-editor

React Native: Native Photo Editor
Apache License 2.0
1.11k stars 241 forks source link

Image Crop Issue #190

Open sqb47 opened 2 years ago

sqb47 commented 2 years ago

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

memanoj commented 2 years ago

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