Gathering detailed insights and metrics for react-native-swipeable-parallax-carousel
Gathering detailed insights and metrics for react-native-swipeable-parallax-carousel
Gathering detailed insights and metrics for react-native-swipeable-parallax-carousel
Gathering detailed insights and metrics for react-native-swipeable-parallax-carousel
React Native Swipeable Parallax Carousel
npm install react-native-swipeable-parallax-carousel
Typescript
Module System
Node Version
NPM Version
31.4
Supply Chain
76
Quality
63
Maintenance
25
Vulnerability
85
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
100 Stars
32 Commits
15 Forks
8 Watchers
1 Branches
1 Contributors
Updated on Feb 06, 2025
Latest Version
1.1.0
Package Id
react-native-swipeable-parallax-carousel@1.1.0
Size
5.37 kB
NPM Version
4.6.1
Node Version
8.1.2
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
1
Carousel with parallax effect, overlay and dots navigation
Carousel without parallax effect, without overlay and with bars navigation
Run: $ npm install react-native-swipeable-parallax-carousel --save
1import SwipeableParallaxCarousel from 'react-native-swipeable-parallax-carousel'; 2 3const datacarousel = [ 4 { 5 "id": 339964, 6 "title": "Valerian and the City of a Thousand Planets", 7 "imagePath": "https://image.tmdb.org/t/p/w780/o6OhxtsgMurL4h68Uqei0aSPMNr.jpg", 8 }, 9 { 10 "id": 315635, 11 "imagePath": "https://image.tmdb.org/t/p/w780/fn4n6uOYcB6Uh89nbNPoU2w80RV.jpg", 12 }, 13 14 ... 15 16 { 17 "id": 339403, 18 "title": "Baby Driver", 19 "subtitle": "More than just a trend", 20 "imagePath": "https://image.tmdb.org/t/p/w780/xWPXlLKSLGUNYzPqxDyhfij7bBi.jpg", 21 }, 22]; 23 24<SwipeableParallaxCarousel 25 data={datacarousel} 26/>
Prop | Description | Default | Required |
---|---|---|---|
data | An array with all your items. Read bellow about Data array structure. | None | Yes |
align | Title alignment. Could be left , right or center . | left | No |
titleColor | Color title. | #ffffff | No |
navigation | Display a navigation bar or not. Boolean true or false . | true | No |
navigationColor | Color of the current item in the navigation bar. | #ffffff | No |
navigationType | Navigation bar type. 3 types available: dots , bars or squares . See navigationType examples for illustrations. | dots | No |
height | Carousel height. | 200 | No |
parallax | Parallax effect while scrolling. Boolean true or false . | true | No |
overlayPath | Image ressource to overlay item image. For example: {require('../assets/images/itemGradient.png')} | None | No |
onPress | A function called when an item is pressed | None | No |
parentScrollViewRef | Reference of the parent ScrollView. Read bellow about Make your carousel ScrollView friendly | None | No |
Your data array must be an array of objects with at least an id
and an imagePath
key.
Prop | Description | Required |
---|---|---|
id | Item ID. | Yes |
title | Item title. Omit this prop if you don't want a title. | No |
subtitle | Item subtitle. Omit this prop if you don't want a subtitle. | No |
imagePath | Item image path. | Yes |
1const datacarousel = [ 2 { 3 "id": 339964, 4 "title": "Valerian and the City of a Thousand Planets", 5 "imagePath": "https://image.tmdb.org/t/p/w780/o6OhxtsgMurL4h68Uqei0aSPMNr.jpg", 6 }, 7 { 8 "id": 315635, 9 "imagePath": "https://image.tmdb.org/t/p/w780/fn4n6uOYcB6Uh89nbNPoU2w80RV.jpg", 10 }, 11 { 12 "id": 339403, 13 "title": "Baby Driver", 14 "subtitle": "More than just a trend", 15 "imagePath": "https://image.tmdb.org/t/p/w780/xWPXlLKSLGUNYzPqxDyhfij7bBi.jpg", 16 }, 17];
navigationType
examplesYou can easily customize your navigation bar with navigationType
: use dots
, bars
or squares
to give a different look at your navigation items.
Remember you can also use navigationColor
to change the color of the current item in your navigation bar.
Dots, bars and squares navigation
In order to use your carousel component inside a ScrollView and avoid any conflicts while scrolling, you need to use parentScrollViewRef
prop.
1<ScrollView 2 ref={(c) => { this.parentScrollView = c; }} 3> 4 5 ... 6 7 <SwipeableCarousel 8 data={datacarousel} 9 parentScrollViewRef={this.parentScrollView} 10 /> 11 12 ... 13 14</ScrollView>
Feel free to contact me on Twitter or create an issue.
This project is licenced under the MIT License.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
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
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