react-native-multiple-image-picker
react-native-multiple-image-picker copied to clipboard
Versioning problem
the last version working was : 1.1.2
the version that is install by default now is : 1.1.5
but its not working
What happened to it? What is the error here? Please provide me with more details?
when you install the lib by default the version is 1.1.5 but the function openPicker is not working in that version nothing happens when calling openPicker()
Do you call openPicker()
function like this:
import { openPicker } from '@baronha/react-native-multiple-image-picker';
// ...
const response = await openPicker(options);
Yes
Can you show me your screenshot for code(import & call) and your error message.
It works in the version 1.1.2 The import and the call exactly like you mentioned But in version 1.1.5 you released nothing happens there is no error
try it on a fresh project, with installing it with : bun add ... / yarn add , it will install the 1.1.5 version ( that's not working ) the working version is 1.1.2 but it's not installed by default
@baronha I found the problem, when using : mediaType in options the openPicker is not working.
@baronha I found the problem, when using : mediaType in options the openPicker is not working.
Show your code, please.
const pickerResSelected = await openPicker({ numberOfColumn: 4, allowedLivePhotos: false, allowedPhotograph: selectedType === 'image' ? true : false, allowedVideo: selectedType === 'video' ? true : false, allowedVideoRecording: selectedType === 'video' ? true : false, singleSelectedMode: false, usedCameraButton: false, maxVideoDuration: 180, maximumMessageTitle: '', maximumMessage: selectedType === 'image' ? t('max-photos-reached')?.toString() : t('one-video-max')?.toString(),
maxSelectedAssets: selectedType === 'image' ? 5 : 1,
doneTitle: t('next'),
usedPrefetch: true,
isExportThumbnail: false,
tapHereToChange: 'Album',
cancelTitle: t('cancel'),
autoPlay: true,
isPreview: Platform.OS === 'ios' ? true : false,
previewAtForceTouch: true,
selectedColor: palette.lightBlue,
emptyMessage: t('no-media-item-in-this-album')?.toString(),
//@ts-ignore
mediaType: selectedType === 'image' ? 'image' : 'video',
});
Which OS are you on? Android
or iOS
Here is an example on iOS
with your code :
https://github.com/baronha/react-native-multiple-image-picker/assets/23580920/bc1a849f-1fdc-46f2-a477-ab011e5e5856