Installations
npm install @kkirbatski/react-native-infinite-scroller
Developer Guide
Typescript
Yes
Module System
CommonJS
Node Version
16.13.0
NPM Version
8.1.0
Score
30.7
Supply Chain
58.1
Quality
63.7
Maintenance
25
Vulnerability
93.2
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (59.62%)
JavaScript (40.38%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
kkirby
Download Statistics
Total Downloads
3,478
Last Day
1
Last Week
3
Last Month
50
Last Year
311
GitHub Statistics
Unlicense License
53 Commits
1 Forks
2 Watchers
10 Branches
2 Contributors
Updated on May 20, 2022
Package Meta Information
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
Total Downloads
Cumulative downloads
Total Downloads
3,478
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
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
4
Dev Dependencies
18
@kkirbatski/react-native-infinite-scroller
Intro
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.
Installation
npm install @kkirbatski/react-native-infinite-scroller --save
Usage
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.
Config
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}
Caveats
This library currently only works on the X-axis as that's all I needed.
License
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
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: The Unlicense: LICENSE:0
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
- 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'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 5 are checked with a SAST tool
Reason
29 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-2j79-8pqc-r7x6
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6
- Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
Score
1.7
/10
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