Gathering detailed insights and metrics for react-native-infinite-masonry
Gathering detailed insights and metrics for react-native-infinite-masonry
Gathering detailed insights and metrics for react-native-infinite-masonry
Gathering detailed insights and metrics for react-native-infinite-masonry
React Native Masonry with Infinite Scrolling
npm install react-native-infinite-masonry
Typescript
Module System
Node Version
NPM Version
JavaScript (45.96%)
Java (28.74%)
Ruby (16.25%)
Objective-C (9.05%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
14 Stars
8 Commits
3 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Dec 15, 2022
Latest Version
0.0.3
Package Id
react-native-infinite-masonry@0.0.3
Unpacked Size
23.74 kB
Size
7.64 kB
File Count
14
NPM Version
6.13.4
Node Version
12.14.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
2
React Native Masonry component with Infinite Scrolling. For a fully working example check this repo. Also detailed explanations are presented in this medium post
$ npm install react-native-infinite-masonry --save
or with yarn:
$ yarn add react-native-infinite-masonry
For a fully working example check this repo. Also a detailed explanation is presented in this medium post
1import Masonry from 'react-native-infinite-masonry'; 2 3... 4 5export default function App() { 6 7 return ( 8 <SafeAreaView style={styles.container}> 9 <Masonry 10 itemsProvider={dataItemProvider} 11 renderItem={Item} 12 pageSize={10} 13 /> 14 </SafeAreaView> 15 ); 16} 17
Two properties has to be set for this component to work properly, namely: itemsProvider and renderItem. The former is a function that returns data information used by the later to render items inside masonry. Find below an example for those properties.
1 2function Item(dataItem, key){ 3 4 return ( 5 <View 6 key={key} 7 style={{ 8 ...styles.card, 9 height: dataItem.height 10 }} 11 > 12 <Image 13 style={styles.img} 14 source={{uri: dataItem.image_url}} 15 /> 16 </View> 17 ); 18} 19 20function dataItemProvider(pageSize=10){ 21 22 return [...Array(pageSize).keys()].map((i) => { 23 return { 24 image_url: `https://i.picsum.photos/id/${parseInt(Math.random() * 200)}/300/400.jpg`, 25 height: parseInt(Math.max(0.3, Math.random()) * vpWidth), 26 key:i 27 }; 28 }); 29 30} 31
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 1/7 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
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
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
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