rn-video-image-carousel

1.0.3 • Public • Published

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



Readme

Keywords

Package Sidebar

Install

npm i rn-video-image-carousel

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

643 kB

Total Files

16

Last publish

Collaborators

  • faysalbsata