react-native-image-crop-tools
react-native-image-crop-tools copied to clipboard
[Android] Initial selection
Hello, thanks for the package! Is it possible to set 100% width of the cropping area on init? On iOS it's fine
Hello, the same on android... And the image works in the resizeMode="contain" mode, while ios, on the contrary, "cover"
You can edit library file here: Search file: ImageCropViewManager.kt
@ReactProp(name = SOURCE_URL_PROP)
fun setSourceUrl(view: CropImageView, url: String?) {
url?.let {
view.setImageUriAsync(Uri.parse(it))
view.setMinCropResultSize(10000, 10000);
Timer().schedule(2000) {
view.setMinCropResultSize(0, 0);
}
}
}
@ReactProp(name = SOURCE_URL_PROP)
fun setSourceUrl(view: CropImageView, url: String?) {
url?.let {
view.setImageUriAsync(Uri.parse(it))
view.setMinCropResultSize(10000, 10000);
Timer().schedule(object : TimerTask() {
override fun run() {
view.setMinCropResultSize(0, 0)
}
}, 2000)
}
}
How to implement this? Editing native code is not good idea