Gathering detailed insights and metrics for @rn-components-kit/carousel
Gathering detailed insights and metrics for @rn-components-kit/carousel
Gathering detailed insights and metrics for @rn-components-kit/carousel
Gathering detailed insights and metrics for @rn-components-kit/carousel
A series of commonly used react-native components
npm install @rn-components-kit/carousel
Typescript
Module System
Node Version
NPM Version
HTML (70.39%)
JavaScript (28.59%)
Objective-C (0.55%)
Starlark (0.27%)
Java (0.2%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
76 Stars
71 Commits
16 Forks
2 Watchers
1 Branches
2 Contributors
Updated on Jan 08, 2024
Latest Version
1.0.2
Package Id
@rn-components-kit/carousel@1.0.2
Unpacked Size
26.22 kB
Size
6.53 kB
File Count
5
NPM Version
5.6.0
Node Version
8.9.4
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
No dependencies detected.
English | 中文
A slideshow component for cycling through elements (image or text), just like a carousel. It supports the following features:
:warning: NOTE
horizontal
mode, width
and itemWidth
must be set.vertical
mode, height
and itemHeight
must be set.data
prop. Or the children of carousel would not be updated.1npm install @rn-components-kit/carousel --save
Preview | Code |
---|---|
![]() | Demo1 Code |
![]() | Demo2 Code |
![]() | Demo3 Code |
![]() | Demo4 Code |
![]() | Demo5 Code |
![]() | Demo6 Code |
![]() | Demo7 Code |
style
initialIndex
draggable
vertical
width
height
itemWidth
itemHeight
gap
loop
cloneCount
centerModeEnabled
autoPlay
autoPlayDelay
showPagination
paginationStyle
dotStyle
curDotStyle
renderPagination
onIndexChange
scrollToPrev
scrollToNext
scrollToIndex
style
Allows you to customize style
Type | Required | Default |
---|---|---|
object | no | - |
initialIndex
Determines the position when carousel first show
Type | Required | Default |
---|---|---|
number | no | 0 |
draggable
Determines whether carousel can be dragged to slide to prev/next one
Type | Required | Default |
---|---|---|
boolean | no | true |
vertical
Determines whether caousel is in horizontal or vertical direction
Type | Required | Default |
---|---|---|
boolean | no | false |
width
The width of carousel (when carousel is in horizontal
mode, it must be set)
Type | Required | Default |
---|---|---|
number | no | - |
height
The height of carousel (when carousel is in vertical
mode, it must be set)
Type | Required | Default |
---|---|---|
number | no | - |
itemWidth
The width of each item in carousel (when carousel is in horizontal
mode, it must be set)
Type | Required | Default |
---|---|---|
number | no | - |
itemHeight
The height of each item in carousel (when carousel is in vertical
mode, it must be set)
Type | Required | Default |
---|---|---|
number | no | - |
gap
When item's length is smaller than container, gap can be used to separate items
Type | Required | Default |
---|---|---|
number | no | 0 |
loop
Determines whether carousel's loop mode is enabled
Type | Required | Default |
---|---|---|
boolean | no | false |
cloneCount
When loop mode is enabled, there will be cloneCount
copied elements placed at both sides of items
Type | Required | Default |
---|---|---|
number | no | 3 |
centerModeEnabled
When item's length is smaller than container, item would be adjusted to the center of carousel if centerModeEnabled is true. In this case, prev/current/next elements will be all in one screen
Type | Required | Default |
---|---|---|
boolean | no | false |
autoPlay
Determines whether auto play mode is enabled
Type | Required | Default |
---|---|---|
boolean | no | false |
autoPlayDelay
When auto play mode is enabled, it determines how long it takes between two scrolling animations (ms)
Type | Required | Default |
---|---|---|
number | no | 3000 |
showPagination
Determines whether pagination module is shown in carousel
Type | Required | Default |
---|---|---|
boolean | no | false |
paginationStyle
Allow you to customize pagination's container style
Type | Required | Default |
---|---|---|
object | no | - |
dotStyle
Allow you to customize pagination's dot style
Type | Required | Default |
---|---|---|
object | no | - |
curDotStyle
Allow you to customize pagination's current dot style
Type | Required | Default |
---|---|---|
object | no | - |
renderPagination
1(info: {curIndex: number, total: number}) => React.ReactElement | null
Allow you to customize pagination module
Type | Required | Default |
---|---|---|
function | no | - |
onIndexChange
1(from: number, to: number) => void
A callback will be triggered when carousel's scrollIndex changes
Type | Required | Default |
---|---|---|
function | no | () => {} |
scrollToPrev()
1scrollToPrev();
Scrolls to prev item
scrollToNext()
1scrollToNext();
Scrolls to next item
scrollToIndex()
1scrollToIndex([options]: {index: number, animated: boolean});
Scrolls to the item at the specified index
No vulnerabilities found.
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 1/29 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
Score
Last Scanned on 2025-07-14
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