React-native Expo multiple image upload not working

Viewed 18

I'm currently writing an app where users can upload images, but I want users to be able to upload multiple images.

I've tried using libraries like: expo-image-picker-multiple, expo-images-picker

but nothing seems to be working. I would love to know which library can I use to allow users to upload when using expo [react-native]

UPDATE

expo-images-picker implementation

     <AssetsSelector
        options={{
          assetTypes: ['photo'],
          noAssetsText: "No media found",
          maxSelections: 3,
          margin: 2,
          portraitCols: 4,
          landscapeCols: 5,
          widgetWidth: 100,
          widgetBgColor: "#fff",
          selectedIcon: {
            Component: Ionicons,
            iconName: "ios-checkmark-circle-outline",
            color: "#fff",
            bg: "#000",
            size: 25
          },
          noAssets: {
            Component: () => <Text>No assets</Text>
          }
        }}
      />

returns error 'undefined is not an object (evaluating 'Settings.portraitCols')

I've been getting this error while trying to implement expo-images-picker. How can I fix this?

Thanks, Arnav.

1 Answers

"expo-images-picker" is an updated library with full Platform Compatibility, it should work, it's the best way for that. You may have forgotten to allow the permissions required to make it work.

Related