Rubics UI
rubics

Carousel

A swipeable image carousel with pagination dots.

Installation

rubics add carousel

Usage

Basic

Props

NameTypeDefaultDescription
dataImageSourcePropType[]-Array of images to display.
widthnumber-Width of the carousel. Defaults to the screen width.
heightnumber-Height of the images. Defaults to 220.
showDotsboolean-Whether to show the pagination dots below the carousel. Defaults to true.
styleStyleProp<ViewStyle>-Custom styles for the wrapper container.
imageStyleStyleProp<ImageStyle>-Custom styles for the individual images.