react-native-double-gallery-carousel
is available for android and ios as well as the web
npm install react-native-double-gallery-carousel
yarn add react-native-double-gallery-carousel
import { CarouselList } from 'react-native-double-gallery-carousel';
<CarouselList
data={[]}
style={{}}
width={Dimensions.get('screen').width}
height={Dimensions.get('screen').height}
/>;
Prop | required | Type | Description |
---|---|---|---|
data | yes | ImageSourcePropType[] | data source |
style | no | ViewStyle | container style |
width | yes | number | container image width It is recommended that the width be the same as the container style width |
height | yes | number | container image height It is recommended that the height be the same as the container style height |
isShowMinorList | no | boolean | Hide the bottom carousel |
You can see the example code and demo.
Clone the repository
git clone https://github.com/zero-HYQ/react-native-double-gallery-carousel.git
Install libraries
yarn
Execute the example project.
# Example folder
# iOS
yarn example ios
# Android
yarn example android
# Web
yarn example web
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT