Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versioning problem #122

Open
hamdij0maa opened this issue Oct 5, 2023 · 11 comments
Open

Versioning problem #122

hamdij0maa opened this issue Oct 5, 2023 · 11 comments

Comments

@hamdij0maa
Copy link

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

@baronha
Copy link
Owner

baronha commented Oct 5, 2023

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

@hamdij0maa
Copy link
Author

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

@baronha
Copy link
Owner

baronha commented Oct 5, 2023

Do you call openPicker() function like this:

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

@hamdij0maa
Copy link
Author

Yes

@baronha
Copy link
Owner

baronha commented Oct 5, 2023

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

@hamdij0maa
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

@baronha
Copy link
Owner

baronha commented Oct 7, 2023

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

Show your code, please.

@hamdij0maa
Copy link
Author

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

@baronha
Copy link
Owner

baronha commented Oct 7, 2023

Which OS are you on? Android or iOS
Here is an example on iOS with your code :

nx26uk.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants