1.0.3 • Published 8 months ago

react-native-parallax-carousel v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Parallax Carousel

A React Native carousel component with a parallax effect.

Installation

npm install react-native-parallax-carousel

Usage

import ParallaxCarousel from "parallax-carousel";

<ParallaxCarousel
  data={data}
  renderItem={renderItem}
  initialIndex={0}
  itemWidth={300}
  itemSpacing={30}
/>;

Props

Props

  • data: Array of items to display in the carousel.
  • renderItem: Function to render each item.
  • initialIndex: Number representing the index of the initial item to display.
  • itemWidth: Number representing the width of each carousel item.
  • itemSpacing: Number representing the space between carousel items.

License

This project is licensed under the MIT License.