1.0.3 • Published 1 year ago
react-native-parallax-carousel v1.0.3
Parallax Carousel
A React Native carousel component with a parallax effect.
Installation
npm install react-native-parallax-carouselUsage
import ParallaxCarousel from "parallax-carousel";
<ParallaxCarousel
data={data}
renderItem={renderItem}
initialIndex={0}
itemWidth={300}
itemSpacing={30}
/>;Props
Props
- data:
Arrayof items to display in the carousel. - renderItem:
Functionto render each item. - initialIndex:
Numberrepresenting the index of the initial item to display. - itemWidth:
Numberrepresenting the width of each carousel item. - itemSpacing:
Numberrepresenting the space between carousel items.
License
This project is licensed under the MIT License.