react-native-light-carousel

## Install > yarn add react-native-light-carousel

Usage no npm install needed!

<script type="module">
  import reactNativeLightCarousel from 'https://cdn.skypack.dev/react-native-light-carousel';
</script>

README

RNLightCarousel

Install

yarn add react-native-light-carousel

or

npm i react-native-light-carousel

Usage

  interface CarouselCardType {
    landingUrl?: string;
    imageUrl?: string;
    backgroundColor?: string;
  }

  interface CarouselProps {
    style?: StyleProp<ViewStyle>; // Carousel list wrapper style
    countStyle?: StyleProp<ViewStyle>; // Carousel count style
    autoPlay?: boolean; // Default false
    autoPlayTime?: number; // Default 3000
    items: CarouselCardType[];
    carouselWidth: number; // 하단 그림 참조
    carouselGap: number; // 하단 그림 참조
    onPress?: (params?: CarouselCardType, index?: number) => void;
  }

  <Carousel
    items={[]}
    carouselWidth={5}
    carouselGap={5}
    style={styles.style}
    countStyle={styles.countStyle}
  />

참고