Skip to content

Commit c822bb0

Browse files
author
denisbevilacqua
committed
Fix - Deactivate Crop Controller when isCrop is false in Android
1 parent 80a183e commit c822bb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

android/src/main/java/com/reactnativemultipleimagepicker/MultipleImagePickerModule.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ class MultipleImagePickerModule(reactContext: ReactApplicationContext) :
127127

128128
if (isCrop) {
129129
setCropOptions(options)
130+
} else {
131+
cropOption = null
130132
}
131133
}
132134
}

0 commit comments

Comments
 (0)