Skip to content

A react native library that provides a carousel containing both images and videos

License

Notifications You must be signed in to change notification settings

FaysalBsata/rn-video-image-carousel

Repository files navigation

React Native Video/Image Carousel Component

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

Prop Type Description Default
data Array Array of objects containing media urls 100%
imageWidth Number Image Width 100%
imageHeight Number Image Height 300
videoWidth Number Video Width 100%
videoHeight Number Video Height 300
shouldPlay Bool Autoplay video true
isMuted Bool Muted Video true
mediaUrl URL Media URL ``
image Bool Image or Video true
...props any more props



About

A react native library that provides a carousel containing both images and videos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published