Installations
npm install @remobile/react-native-camera-roll-picker
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
8.1.3
NPM Version
5.0.3
Score
71.5
Supply Chain
99.3
Quality
77.5
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
remobile
Download Statistics
Total Downloads
1,179
Last Day
1
Last Week
3
Last Month
19
Last Year
95
GitHub Statistics
3 Stars
5 Commits
3 Watching
1 Branches
1 Contributors
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
1,179
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
React Native Camera Rool Picker (remobile)
A React Native component providing images selection from camera roll.
Installation
1npm install @remobile/react-native-camera-roll-picker --save
Usage
Example
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});
Screencasts
Props
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 theemptyText
. (Default:textAlign: 'center'
)
thanks
- this project code come from https://github.com/jeanpan/react-native-camera-roll-picker
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
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
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
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