Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-multimedia-picker

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-multimedia-picker

test

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-multimedia-picker(Android Only)

Gallery View for React Native to pick images from device storage.

Installation

npm install react-native-multimedia-picker

Checkout below gif.

Required Installation steps

npm install @react-native-camera-roll/camera-roll --save`

  1. Open up android/app/src/main/java/[...]/MainApplication.java (Auto link, ^RN0.69 does not required)
  • Add import com.reactnativecommunity.cameraroll.CameraRollPackage; to the imports at the top of the file
  • Add new CameraRollPackage() to the list returned by the getPackages() method
  1. Append the following lines to android/settings.gradle:
    include ':@react-native-camera-roll_camera-roll'
    project(':@react-native-camera-roll_camera-roll').projectDir = new File(rootProject.projectDir, 	'../node_modules/@react-native-camera-roll/camera-roll/android')
    
  2. Insert the following lines inside the dependencies block in android/app/build.gradle: implementation project(':@react-native-camera-roll_camera-roll') Starting with Android 10, the concept of scoped storage is introduced. Currently, to make it working with that change, you have to add android:requestLegacyExternalStorage="true" to AndroidManifest.xml:
<manifest ... >
  <application android:requestLegacyExternalStorage="true" ... >
    ...
  </application>
</manifest>

Usage

import MultiMediaPicker from 'react-native-multimedia-picker';

// ...

return (
    <MultiMediaPicker
    type="All"
    selectionlimit={10}
    onSelectImages={(files)=>console.log(files)}>
    { childern }
    </MultiMediaPicker>
)

List of props that you can pass down to the ProgressBar Component:

PropertyDescriptionDefault ValueType
typeSpecifies filter on Asset type'All'enum("Photo","Video","All")
selectionlimitLimit on media selection1integer
onSelectImagesonSelectImages is event handler function which gets executed when clicked on done after selecting files,first parameter will return array of files.(files) => void;Function

Keywords

FAQs

Package last updated on 19 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc