Carousel for React Native. Built with react-native-pager-view.
Better documentation should be lived in an individual website soon!
npm install react-native-awesome-carousel
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 | required | default | type | description |
---|---|---|---|---|
loop | false | true | boolean | whether the carousel should loop |
autoplay | false | true | boolean | whether the carousel should autoplay |
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT