0.3.0 • Published 3 years ago

react-native-awesome-carousel v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

propsrequireddefaulttypedescription
loopfalsetruebooleanwhether the carousel should loop
autoplayfalsetruebooleanwhether the carousel should autoplay

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT