Coder Social home page Coder Social logo

Comments (11)

baronha avatar baronha commented on June 7, 2024 1

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

from react-native-multiple-image-picker.

baronha avatar baronha commented on June 7, 2024 1

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

from react-native-multiple-image-picker.

hamdij0maa avatar hamdij0maa commented on June 7, 2024

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

from react-native-multiple-image-picker.

baronha avatar baronha commented on June 7, 2024

Do you call openPicker() function like this:

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

from react-native-multiple-image-picker.

hamdij0maa avatar hamdij0maa commented on June 7, 2024

Yes

from react-native-multiple-image-picker.

hamdij0maa avatar hamdij0maa commented on June 7, 2024

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

from react-native-multiple-image-picker.

hamdij0maa avatar hamdij0maa commented on June 7, 2024

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

from react-native-multiple-image-picker.

hamdij0maa avatar hamdij0maa commented on June 7, 2024

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

from react-native-multiple-image-picker.

baronha avatar baronha commented on June 7, 2024

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

Show your code, please.

from react-native-multiple-image-picker.

hamdij0maa avatar hamdij0maa commented on June 7, 2024

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

from react-native-multiple-image-picker.

baronha avatar baronha commented on June 7, 2024

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

nx26uk.mp4

from react-native-multiple-image-picker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.