react-native-multiple-image-picker icon indicating copy to clipboard operation
react-native-multiple-image-picker copied to clipboard

Versioning problem

Open hamdij0maa opened this issue 10 months ago • 11 comments

the last version working was : 1.1.2 the version that is install by default now is : 1.1.5 but its not working image

hamdij0maa avatar Oct 05 '23 13:10 hamdij0maa

What happened to it? What is the error here? Please provide me with more details?

baronha avatar Oct 05 '23 15:10 baronha

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()

hamdij0maa avatar Oct 05 '23 15:10 hamdij0maa

Do you call openPicker() function like this:

import { openPicker } from '@baronha/react-native-multiple-image-picker';
// ...
const response = await openPicker(options);

baronha avatar Oct 05 '23 16:10 baronha

Yes

hamdij0maa avatar Oct 05 '23 17:10 hamdij0maa

Can you show me your screenshot for code(import & call) and your error message.

baronha avatar Oct 05 '23 18:10 baronha

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

hamdij0maa avatar Oct 05 '23 19:10 hamdij0maa

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

hamdij0maa avatar Oct 06 '23 09:10 hamdij0maa

@baronha I found the problem, when using : mediaType in options the openPicker is not working.

hamdij0maa avatar Oct 07 '23 10:10 hamdij0maa

@baronha I found the problem, when using : mediaType in options the openPicker is not working.

Show your code, please.

baronha avatar Oct 07 '23 11:10 baronha

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',
  });

hamdij0maa avatar Oct 07 '23 13:10 hamdij0maa

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

baronha avatar Oct 07 '23 13:10 baronha