1.0.3 • Published 2 years ago

rn-video-image-carousel v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

yarn add rn-video-image-carousel or npm install --save rn-video-image-carousel

USE:

import ImageCarousel from "rn-video-image-carousel";
    <ImageCarousel
      data={[
        {
          mediaUrl:
            yourUrl,
          image: true,
        },
        {
          mediaUrl:
            yourUrl,
          image: false,
        },
      ]}
    />  

Properties

PropTypeDescriptionDefault
dataArrayArray of objects containing media urls100%
imageWidthNumberImage Width100%
imageHeightNumberImage Height300
videoWidthNumberVideo Width100%
videoHeightNumberVideo Height300
shouldPlayBoolAutoplay videotrue
isMutedBoolMuted Videotrue
mediaUrlURLMedia URL
imageBoolImage or Videotrue
...propsanymore props