Skip to content

Commit 4cb690f

Browse files
authored
Merge pull request #114 from denisbevilacqua/fix_android_deactivate_crop_controller_when_iscrop_is_false
Fix - Deactivate Crop Controller when isCrop is false in Android
2 parents 55ed9ac + c822bb0 commit 4cb690f

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)