Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
react-native-multimedia-picker
Advanced tools
Gallery View for React Native to pick images from device storage.
npm install react-native-multimedia-picker
npm install @react-native-camera-roll/camera-roll --save`
android/app/src/main/java/[...]/MainApplication.java
(Auto link, ^RN0.69 does not required)import com.reactnativecommunity.cameraroll.CameraRollPackage;
to the imports at the top of the filenew CameraRollPackage()
to the list returned by the getPackages()
methodandroid/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')
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>
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:
Property | Description | Default Value | Type |
---|---|---|---|
type | Specifies filter on Asset type | 'All' | enum("Photo","Video","All") |
selectionlimit | Limit on media selection | 1 | integer |
onSelectImages | onSelectImages is event handler function which gets executed when clicked on done after selecting files,first parameter will return array of files. | (files) => void; | Function |
FAQs
test
The npm package react-native-multimedia-picker receives a total of 7 weekly downloads. As such, react-native-multimedia-picker popularity was classified as not popular.
We found that react-native-multimedia-picker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.