React Native Carousel Component
React Native Carousel Component for iOS & Android.
Pull request are welcomed. Please follow the Airbnb style guide Airbnb JavaScript


Installation
react-native <= 0.4.3 install 'react-native-carousel-component: ^0.1.17'
react-native >= 0.4.4 install 'react-native-carousel-component: ^0.2.17'
yarn add react-native-carousel-component# OR npm install --save react-native-carousel-component
Docs
Example
Example App
Demo App for Demonstrate How To Use CarouselComponent
+
Navigator
with Navigator.NavigationBar
CorouselComponent
Usage with ; const cards = <CarouselCard key=0 title="Title" description="Description" > // You can put your view here </CarouselCard>; <CarouselComponent ref= { thiscarousel = carousel; } cards=cards title="Carousel Title" subTitle="Carousel Sub Title" showPageControl leftItem= title: 'CLOSE' layout: 'title' onPress: thisdismiss > // You can put your view here</CarouselComponent>
Navigator
with Navigator.NavigationBar
in your app please put Navigator into CarouselComponent
Note: If you uses For example:
<CarouselComponent ref= { thiscarousel = carousel; } cards=cards title="Carousel Title" subTitle="Carousel Sub Title" showPageControl leftItem= title: 'CLOSE' layout: 'title' onPress: thisdismiss > <Navigator ref= { thisnavigator = navigator; } navigationBar=<NavigatorNavigationBar /> style=stylesnavigator /></CarouselComponent>
show
method open the carousel and call the dismiss
to close the carousel
You can call thiscarousel; thiscarousel;