react-native-awesome-carousel
v0.3.0
Published
Carousel for React Native. Built with react-native-pager-view.
Downloads
6
Readme
react-native-awesome-carousel
Carousel for React Native. Built with react-native-pager-view. Better documentation should be lived in an individual website soon!
Installation
npm install react-native-awesome-carousel
Usage
import AwesomeCarousel from "react-native-awesome-carousel";
const App = () => {
return (
<View style={{flex: 1}}>
<View style={styles.slideContainer}>
<AwesomeCarousel loop={false}>
<View style={styles.slide1}>
<Text>Normal Carousel</Text>
<Text>Slide 1</Text>
</View>
<View style={styles.slide2}>
<Text>Normal Carousel</Text>
<Text>Slide 2</Text>
</View>
</AwesomeCarousel>
</View>
</View>
)
}
Props
| props | required | default | type | description | |----------|----------|---------|---------|--------------------------------------| | loop | false | true | boolean | whether the carousel should loop | | autoplay | false | true | boolean | whether the carousel should autoplay |
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT