We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 931c38e + bf71dca commit 32473c9Copy full SHA for 32473c9
android/src/main/java/com/reactnativemultipleimagepicker/MultipleImagePickerModule.kt
@@ -68,8 +68,10 @@ class MultipleImagePickerModule(reactContext: ReactApplicationContext) : ReactCo
68
override fun onResult(result: MutableList<Any?>?) {
69
//check difference
70
if (singleSelectedMode) {
71
+ val singleLocalMedia: WritableArray = WritableNativeArray()
72
val media: WritableMap = createAttachmentResponse(result?.get(0) as LocalMedia)
- promise.resolve(media)
73
+ singleLocalMedia.pushMap(media)
74
+ promise.resolve(singleLocalMedia)
75
return
76
}
77
val localMedia: WritableArray = WritableNativeArray()
0 commit comments