Gathering detailed insights and metrics for @kkirbatski/react-native-infinite-scroller
Gathering detailed insights and metrics for @kkirbatski/react-native-infinite-scroller
Gathering detailed insights and metrics for @kkirbatski/react-native-infinite-scroller
Gathering detailed insights and metrics for @kkirbatski/react-native-infinite-scroller
npm install @kkirbatski/react-native-infinite-scroller
Typescript
Module System
Node Version
NPM Version
30.7
Supply Chain
58.1
Quality
63.7
Maintenance
25
Vulnerability
93.2
License
TypeScript (59.62%)
JavaScript (40.38%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
3,478
Last Day
1
Last Week
3
Last Month
50
Last Year
311
Unlicense License
53 Commits
1 Forks
2 Watchers
10 Branches
2 Contributors
Updated on May 20, 2022
Latest Version
1.0.17
Package Id
@kkirbatski/react-native-infinite-scroller@1.0.17
Unpacked Size
168.94 kB
Size
50.98 kB
File Count
30
NPM Version
8.1.0
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
-50%
3
Compared to previous week
Last Month
92.3%
50
Compared to previous month
Last Year
-46.7%
311
Compared to previous year
4
18
This library was created because I was unable to find a good infinite scrolling component for react-native. The code in this library is heavily inspired by cubiq's iScroll. A lot of the infinite logic has been ported from iScroll. See src/InfiniteCalculator.ts.
npm install @kkirbatski/react-native-infinite-scroller --save
Take a look at the example.
Basically you can set wether or not the scroller is infinite, (if it's not
infinite you will need to pass a totalItemCount
property). If you don't want
it to be infinite, it's your job to prevent rendering of the item in your render
function. If you are rendering an empty item, be sure that the layout of the
item matches that of other items. This library will infer the layout to calculate
item offsets, so if your non-rendered item has no layout, we can't figure out property
width/heights and item offsets.
1interface InfiniteScrollerProps<T> { 2 dataset(start: number, count: number): Promise<T[]>; 3 renderItem: (data: T | null) => React.ReactElement; 4 style?: StyleProp<ViewStyle>; 5 totalItemCount?: number | null; 6 centerInWrapper?: boolean | null; 7 startingPosition?: number | null; 8 onScrollEnd?: ( 9 scrollPosition: number, 10 scroller: InfiniteScroller<T>, 11 ) => void | null; 12 infiniteElementCount?: number | null; 13}
This library currently only works on the X-axis as that's all I needed.
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 1/26 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 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
Reason
29 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
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