Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
react-native-smart-camera-roll-picker
Advanced tools
Readme
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 3 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.