diff --git a/example/src/App.js b/example/src/App.js index c416037..c7b3d62 100644 --- a/example/src/App.js +++ b/example/src/App.js @@ -14,13 +14,11 @@ export default function App() { isExportThumbnail: true, maxVideo: 1, usedCameraButton: false, - singleSelectedMode: true, isCrop: true, isCropCircle: true, - // selectedColor: '#f9813a', }); - console.log('done: ', response); - setImages([response]); + console.log('response: ', response); + setImages(response); } catch (e) { console.log(e.code, e.message); } @@ -44,7 +42,7 @@ export default function App() { uri: item?.type === 'video' ? item?.thumbnail ?? '' - : 'file://' + item?.crop?.cropPath, + : 'file://' + (item?.crop?.cropPath ?? item.path), }} style={style.media} /> diff --git a/ios/MultipleImagePicker.swift b/ios/MultipleImagePicker.swift index 2cc9db6..071e88f 100644 --- a/ios/MultipleImagePicker.swift +++ b/ios/MultipleImagePicker.swift @@ -144,7 +144,7 @@ class MultipleImagePicker: NSObject, TLPhotosPickerViewControllerDelegate,UINavi func createAttachmentResponse(filePath: String?, withFilename filename: String?, withType type: String?, withAsset asset: PHAsset, withTLAsset TLAsset: TLPHAsset ) -> [AnyHashable :Any]? { var media = [ - "path": "file://" + filePath! as String, + "path": filePath! as String, "localIdentifier": asset.localIdentifier, "fileName":TLAsset.originalFileName!, "width": Int(asset.pixelWidth ) as NSNumber, diff --git a/src/index.js b/src/index.js index ea83ba7..8a0b074 100644 --- a/src/index.js +++ b/src/index.js @@ -18,8 +18,8 @@ let defaultOptions = { allowedLivePhotos: true, preventAutomaticLimitedAccessAlert: true, // newest iOS 14 emptyMessage: 'No albums', - selectMessage: 'select', - deselectMessage: 'deselect', + selectMessage: 'Select', + deselectMessage: 'Deselect', selectedColor: '#FB9300', maximumMessageTitle: 'Notification', maximumMessage: 'You have selected the maximum number of media allowed',