1.0.3 • Published 3 years ago
rn-video-image-carousel v1.0.3
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 |