Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
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
The npm package react-native-smart-camera-roll-picker receives a total of 5 weekly downloads. As such, react-native-smart-camera-roll-picker popularity was classified as not popular.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.