Gathering detailed insights and metrics for js-masonry-list
Gathering detailed insights and metrics for js-masonry-list
Gathering detailed insights and metrics for js-masonry-list
Gathering detailed insights and metrics for js-masonry-list
npm install js-masonry-list
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
49 Commits
1 Branches
1 Contributors
Updated on Feb 19, 2019
Latest Version
0.4.7
Package Id
js-masonry-list@0.4.7
Unpacked Size
18.57 kB
Size
5.44 kB
File Count
6
NPM Version
6.7.0
Node Version
8.12.0
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
Allows creating masonry style list layouts in a performant way.
This component leverages FlatList
to render performant masonry layout lists. The
main caveat right now is that it doesn't support measuring cells (yet) so you need to be
able to provide the dimensions.
forked from AppAndFlow/react-native-masonry-list(https://github.com/AppAndFlow/react-native-masonry-list)
yarn add js-masonry-list
import MasonryList from 'js-masonry-list';
This component supports most of the props of FlatList
plus a few extras one:
getHeightForItem: ({ item: any, index: number }) => number,
Returns the height for a specific item. Note that this it not optional for now.
numColumns: number
The number of columns.
itemOffsetHeight: number
The number of itemOffsetHeight。You must ensure that itemHeight is the outermost container, for example, item has marginTop
renderItem: ({ item: any, index: number, column: number, columnIndex: number }) => ?ReactElement<*>,
Same as renderItem
from FlatList
but also gets passed the column index. notice(columnIndex is index at old list)
ListFooterComponent: ReactElement<*>
Same as ListFooterComponent
from FlatList
.
refreshConfig: Object
Same as refreshConfig
from RefreshControl config
.
Play with on Expo
Take a look at example folder
-[x] Support measuring items automatically and get rid of getHeightForItem
.
-[x] Implement onEndReached in a way that it isn't called multiple times.
-[x] Support FooterComponent.
-[] Long term, could probably be implemented without using multiple VirtualizedList
to make it more performant and less hacky.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
98 existing vulnerabilities detected
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