Gathering detailed insights and metrics for @remobile/react-native-camera-roll-picker
Gathering detailed insights and metrics for @remobile/react-native-camera-roll-picker
npm install @remobile/react-native-camera-roll-picker
Typescript
Module System
Node Version
NPM Version
71.5
Supply Chain
99.3
Quality
77.5
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
1,179
Last Day
1
Last Week
3
Last Month
19
Last Year
95
3 Stars
5 Commits
3 Watching
1 Branches
1 Contributors
Latest Version
1.0.2
Package Id
@remobile/react-native-camera-roll-picker@1.0.2
Unpacked Size
154.30 kB
Size
143.64 kB
File Count
9
NPM Version
5.0.3
Node Version
8.1.3
Cumulative downloads
Total Downloads
Last day
0%
1
Compared to previous day
Last week
-76.9%
3
Compared to previous week
Last month
1,800%
19
Compared to previous month
Last year
-42.4%
95
Compared to previous year
No dependencies detected.
A React Native component providing images selection from camera roll.
1npm install @remobile/react-native-camera-roll-picker --save
1var React = require('react'); 2var ReactNative = require('react-native'); 3var { 4 StyleSheet, 5 Text, 6 View, 7} = ReactNative; 8 9var CameraRollPicker = require('@remobile/react-native-camera-roll-picker'); 10 11module.exports = React.createClass({ 12 getInitialState() { 13 return { 14 num: 0, 15 selected: [], 16 }; 17 }, 18 onSelectedImages(images, current) { 19 var num = images.length; 20 21 this.setState({ 22 num: num, 23 selected: images, 24 }); 25 26 console.log(current); 27 console.log(this.state.selected); 28 }, 29 openCamera() { 30 console.log("open camera here"); 31 }, 32 render() { 33 return ( 34 <View style={styles.container}> 35 <View style={styles.content}> 36 <Text style={styles.text}> 37 <Text style={styles.bold}> 38 {this.state.num} 39 </Text> 40 images has been selected 41 </Text> 42 </View> 43 <CameraRollPicker 44 scrollRenderAheadDistance={500} 45 initialListSize={1} 46 pageSize={3} 47 removeClippedSubviews={false} 48 groupTypes='SavedPhotos' 49 batchSize={5} 50 maximum={1} 51 selected={this.state.selected} 52 assetType='Photos' 53 imagesPerRow={3} 54 imageMargin={5} 55 onSelectedImages={this.onSelectedImages} 56 openCamera={this.openCamera} /> 57 </View> 58 ); 59 }, 60}); 61 62const styles = StyleSheet.create({ 63 container: { 64 flex: 1, 65 backgroundColor: '#F6AE2D', 66 }, 67 content: { 68 marginTop: 15, 69 height: 50, 70 flexDirection: 'row', 71 justifyContent: 'center', 72 alignItems: 'center', 73 flexWrap: 'wrap', 74 }, 75 text: { 76 fontSize: 16, 77 alignItems: 'center', 78 color: '#fff', 79 }, 80 bold: { 81 fontWeight: 'bold', 82 }, 83 info: { 84 fontSize: 12, 85 }, 86});
onSelectedImages
: Callback function when images was selected. (is required!). Return a selected image array and current selected image.openCamera
: Open camera function.scrollRenderAheadDistance
: "How early to start rendering rows before they come on screen, in pixels." (Default: 500)initialListSize
: Specifies how many rows we want to render on our first render pass. (Default: 1)pageSize
: After the initial render where 'initialListSize' is used, ListView looks at the pageSize to determine how many rows to render per frame. (Default: 3)removeClippedSubViews
: "When true, offscreen child views (whose overflow value is hidden) are removed from their native backing superview when offscreen. This can improve scrolling performance on long lists. The default value is true." (The default value is false before version 0.14-rc). (Default: true)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: 15)imagesPerRow
: Number of images per row. (Default: 3)imageMargin
: Margin size of one image. (Default: 5)containerWidth
: Width of camer roll picker container. (Default: device width)selectedMarker
: Custom selected image marker component. (Default: checkmark).backgroundColor
: Set background color. (Default: white).emptyText
: Text to display instead of a list when there are no photos found. (Default: 'No photos.')emptyTextStyle
: Styles to apply to the emptyText
. (Default: textAlign: 'center'
)No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/5 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More