All Projects → jacklam718 → react-native-carousel-component

jacklam718 / react-native-carousel-component

Licence: MIT license
React Native Carousel Component for IOS & Android

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-native-carousel-component

native-gallery
native image gallery in ~100 lines of code
Stars: ✭ 19 (-68.85%)
Mutual labels:  carousel
expo-ui-kit
expo-ui-kit - a components based React-Native UI Kit
Stars: ✭ 88 (+44.26%)
Mutual labels:  react-native-component
AndroidSliderViewsLibrary
AndroidSliderViewsLibrary is an Android SDK library supports vertical & horizontal carousel and slideshow Views which developers simply integrate on Android project. - by @sung2063
Stars: ✭ 33 (-45.9%)
Mutual labels:  carousel
vue-barousel
Carousel component mimics NetEase Cloud Music
Stars: ✭ 13 (-78.69%)
Mutual labels:  carousel
react-native-multi-selectbox
Platform independent (Android / iOS) Selectbox | Picker | Multi-select | Multi-picker. The idea is to bring out the common user interface & user experience on both platforms.
Stars: ✭ 169 (+177.05%)
Mutual labels:  react-native-component
react-imageViewer
React component for image displaying in full screen
Stars: ✭ 61 (+0%)
Mutual labels:  carousel
jquery.circular-carousel
[ABANDONED] A 3D-like circular carousel plugin for jQuery.
Stars: ✭ 49 (-19.67%)
Mutual labels:  carousel
react-native-chat-ui
Actively maintained, community-driven chat UI implementation with an optional Firebase BaaS.
Stars: ✭ 168 (+175.41%)
Mutual labels:  react-native-component
stimulus-carousel
A Stimulus controller to deal with carousel.
Stars: ✭ 22 (-63.93%)
Mutual labels:  carousel
pinar
🌲☀️ Customizable, lightweight React Native carousel component with accessibility support.
Stars: ✭ 214 (+250.82%)
Mutual labels:  carousel
SimpleSlider
Simple responsive slider created in pure javascript.
Stars: ✭ 21 (-65.57%)
Mutual labels:  carousel
vue-m-carousel
vue 移动端轮播组件
Stars: ✭ 53 (-13.11%)
Mutual labels:  carousel
react-native-viewpager-carousel
a flexible viewpager library with carousel functionality
Stars: ✭ 39 (-36.07%)
Mutual labels:  carousel
carousel-viewpager
Beautiful carousel layout implemented using ViewPager
Stars: ✭ 17 (-72.13%)
Mutual labels:  carousel
react-native-select-pro
React Native dropdown (select) component developed by Mobile Reality
Stars: ✭ 79 (+29.51%)
Mutual labels:  react-native-component
IndicatorView
IndicatorView Library For Android
Stars: ✭ 41 (-32.79%)
Mutual labels:  carousel
react-spring-carousel-js
A new Carousel experience for the modern Web
Stars: ✭ 82 (+34.43%)
Mutual labels:  carousel
react-native-ios-modal
A react-native component for displaying a modal on iOS by natively wrapping a react-native view inside a UIViewController and presenting it.
Stars: ✭ 94 (+54.1%)
Mutual labels:  react-native-component
svelte-slidy
📸 Sliding action script
Stars: ✭ 211 (+245.9%)
Mutual labels:  carousel
react-native-image-blur-shadow
A React Native Image component with Blur Drop Shadows,100% JavaScript, 0 dependency component. Supports Android, iOS and Web. A light weight <Image/> component for your react native project.
Stars: ✭ 80 (+31.15%)
Mutual labels:  react-native-component

React Native Carousel Component

React Native Carousel Component for iOS & Android.

Pull request are welcomed. Please follow the Airbnb style guide Airbnb JavaScript

Try it with Exponent



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

Docs

Example

Example App
Demo App for Demonstrate How To Use CarouselComponent + Navigator with Navigator.NavigationBar

Usage with CorouselComponent

import CarouselComponent, { CarouselCard } from 'react-native-carousel-component';

const cards = [
  <CarouselCard
    key={0}
    title="Title"
    description="Description"
  >
    // You can put your view here
  </CarouselCard>
];

<CarouselComponent
  ref={(carousel) => { this.carousel = carousel; }}
  cards={cards}
  title="Carousel Title"
  subTitle="Carousel Sub Title"
  showPageControl
  leftItem={{
    title: 'CLOSE',
    layout: 'title',
    onPress: this.dismiss,
  }}
>
  // You can put your view here
</CarouselComponent>

Note: If you uses Navigator with Navigator.NavigationBar in your app please put Navigator into CarouselComponent

For example:
<CarouselComponent
  ref={(carousel) => { this.carousel = carousel; }}
  cards={cards}
  title="Carousel Title"
  subTitle="Carousel Sub Title"
  showPageControl
  leftItem={{
    title: 'CLOSE',
    layout: 'title',
    onPress: this.dismiss,
  }}
>
  <Navigator
    ref={(navigator) => { this.navigator = navigator; }}
    navigationBar={<Navigator.NavigationBar />}
    style={styles.navigator}
  />
</CarouselComponent>

You can call show method open the carousel and call the dismiss to close the carousel

this.carousel.show(() => {
  console.log('callback for show method')
});

this.carousel.dismiss(() => {
    console.log('callback for dismiss method')
});
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].