Comments (5)
This is because pictureselector re-implemented(copy pasted afaik) ucrop internally so it conflicts
I solved it by just applyint this patch (using patch-package)
diff --git a/node_modules/react-native-image-crop-picker/android/build.gradle b/node_modules/react-native-image-crop-picker/android/build.gradle
index 48443cc..3d9714f 100644
--- a/node_modules/react-native-image-crop-picker/android/build.gradle
+++ b/node_modules/react-native-image-crop-picker/android/build.gradle
@@ -22,5 +22,5 @@ android {
dependencies {
implementation 'com.facebook.react:react-native:+'
implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0'
- implementation 'com.github.yalantis:ucrop:2.2.6-native'
+ implementation 'io.github.lucksiege:pictureselector:v2.7.3-rc08'
}
diff --git a/node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java b/node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java
index c6b09a9..1ff1225 100644
--- a/node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java
+++ b/node_modules/react-native-image-crop-picker/android/src/main/java/com/reactnative/ivpusic/imagepicker/PickerModule.java
@@ -19,6 +19,7 @@ import android.webkit.MimeTypeMap;
import androidx.core.app.ActivityCompat;
import androidx.core.content.FileProvider;
+import androidx.appcompat.app.AppCompatActivity;
import com.facebook.react.bridge.ActivityEventListener;
import com.facebook.react.bridge.Callback;
@@ -680,7 +681,7 @@ class PickerModule extends ReactContextBaseJavaModule implements ActivityEventLi
uCrop.withAspectRatio(width, height);
}
- uCrop.start(activity);
+ uCrop.start(activity, UCrop.REQUEST_CROP);
}
private void imagePickerResult(Activity activity, final int requestCode, final int resultCode, final Intent data) {
from react-native-multiple-image-picker.
Basically making react native crop picker use pictureselector uCrop instead of ucrop directly. since then both package reference picture selector methods it doesn't conflict anymore 🎉 changeing uCrop.start some other places might be needed, for my use case only here was needed
from react-native-multiple-image-picker.
I tried to solve this but failed. So I added crop image to android in 0.4.8. Documentation is here. And I'm planning to implement crop image in iOS in the next version.
from react-native-multiple-image-picker.
Think this could be solved on app level gradle somehow, any ideas btw? Thinking something like this https://docs.gradle.org/current/userguide/resolution_rules.html#sec:module_replacement
from react-native-multiple-image-picker.
Try upgrade to v.1.0.2
from react-native-multiple-image-picker.
Related Issues (20)
- Versioning problem HOT 11
- IOS: Cannot select image when you limit photo library and mediaType = "all" HOT 2
- ios: Not callback permission or notice on ios when user deny
- ios: can`t select image on ios when user status == .limited
- Feat: Thêm option chụp ảnh HOT 4
- Migrate to New Architecture | HXPhotoPicker HOT 2
- Can you provide a function to return base64? We need to upload it
- Error 163 duplicate symbols for architecture x86_64 on IOS HOT 7
- Image is not showing in Gallery after capturing image in Camera
- Type mismatch openPicker using singleSelectedMode HOT 2
- duplicate symbol '_OBJC_CLASS_$_TOActivityCroppedImageProvider' HOT 1
- 0.73 HOT 7
- Problem building in xcode HOT 1
- Caused by: org.jetbrains.kotlin.gradle.tasks.CompilationErrorException: Compilation error. See log for more details HOT 6
- iOS crashes on load
- [IOS] Loading forever when select image limit access
- App Crash on Android real device when click done. HOT 2
- Task :baronha_react-native-multiple-image-picker:compileDebugKotlin FAILED HOT 3
- `selectedColor` prop is not working on Android
- GIFs not displaying for Android devices HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-multiple-image-picker.