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-smart-camera-roll-picker
Advanced tools
A smart react native component providing images selection from camera roll
A smart react native component providing images selection from camera roll
npm install react-native-smart-camera-roll-picker --save
import React, {
Component,
} from 'react'
import {
View,
Text,
StyleSheet,
Platform,
CameraRoll,
Dimensions,
} from 'react-native'
import CameraRollPicker from 'react-native-smart-camera-roll-picker'
export default class CameraRollPickerDemo extends Component {
// 构造
constructor(props) {
super(props);
}
//Using ListView
render() {
return (
<View style={{marginTop: Platform.OS == 'ios' ? 64 : 56, flex: 1,}}>
<CameraRollPicker
style={{flex: 1,}}
onSelect={this._getSelectedImages}/>
</View>
)
}
_getSelectedImages = (selectedImages, currentImage) => {
console.log(`selectedImages = `, selectedImages)
}
}
fetchSize
: How many images will be fetched each page. (Default: 90)onSelect
: Callback function when images was selected. (is required!). Return a selected image array and current selected image.onEndReachedThreshold
: "How early to start loading more rows , in pixels." (Default: 0)initialListSize
: Specifies how many rows we want to render on our first render pass. (Default: 30)pageSize
: After the initial render where 'initialListSize' is used, ListView looks at the pageSize to determine how many rows to render per frame. (Default: 30)groupTypes
: The group where the photos will be fetched, one of 'Album', 'All', 'Event', 'Faces', 'Library', 'PhotoStream' and 'SavedPhotos'. (Default: SavedPhotos)assetType
: The asset type, one of 'Photos', 'Videos' or 'All'. (Default: Photos)selected
: Already be selected images array. (Default: [])maximum
: Maximum number of selected images. (Default: 8)columnCount
: Number of images per row. (Default: 3)rowWidth
: Width of camer roll picker container. (Default: device width)selectedMarker
: Custom selected image marker component. (Default: circle-check.png).FAQs
A smart react native component providing images selection from camera roll
We found that react-native-smart-camera-roll-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.