All Projects → davidsamacoits → React Native Swipeable Parallax Carousel

davidsamacoits / React Native Swipeable Parallax Carousel

Licence: mit
React Native Swipeable Parallax Carousel

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Native Swipeable Parallax Carousel

React Responsive Carousel
React.js Responsive Carousel (with Swipe)
Stars: ✭ 1,962 (+1902.04%)
Mutual labels:  react-component, carousel
React Touch Carousel
Ultra-customizable carousel framework for React.JS
Stars: ✭ 158 (+61.22%)
Mutual labels:  react-component, carousel
React Image Gallery
React carousel image gallery component with thumbnail support 🖼
Stars: ✭ 2,946 (+2906.12%)
Mutual labels:  carousel, react-component
React Awesome Slider
React content transition slider. Awesome Slider is a 60fps, light weight, performant component that renders an animated set of production ready UI general purpose sliders with fullpage transition support for NextJS and GatsbyJS. 🖥️ 📱
Stars: ✭ 2,343 (+2290.82%)
Mutual labels:  react-component, carousel
React Alice Carousel
React responsive component for building content galleries, content rotators and any React carousels
Stars: ✭ 419 (+327.55%)
Mutual labels:  react-component, carousel
React Splide
The Splide component for React.
Stars: ✭ 32 (-67.35%)
Mutual labels:  react-component, carousel
React Items Carousel
Items Carousel Built with react-motion and styled-components
Stars: ✭ 150 (+53.06%)
Mutual labels:  react-component, carousel
DrinksGalleryApp
Xamarin.Forms goodlooking UI sample using the new CarouselView (Parallax).
Stars: ✭ 51 (-47.96%)
Mutual labels:  parallax, carousel
react-carousel-minimal
React.js Responsive Minimal Carousel
Stars: ✭ 76 (-22.45%)
Mutual labels:  react-component, carousel
React Grid Carousel
React responsive carousel component w/ grid layout
Stars: ✭ 29 (-70.41%)
Mutual labels:  react-component, carousel
Veluxi Starter
Veluxi Vue.js Starter Project with Nuxt JS and Vuetify
Stars: ✭ 39 (-60.2%)
Mutual labels:  carousel, parallax
React Promise
a react.js hook for general promise in typescript
Stars: ✭ 90 (-8.16%)
Mutual labels:  react-component
Material2 Carousel
A carousel component for Angular using Material
Stars: ✭ 84 (-14.29%)
Mutual labels:  carousel
Stacked Cards
Give your content boxes a stacked cards look with each card swapping with other.
Stars: ✭ 83 (-15.31%)
Mutual labels:  carousel
Rn Falcon App Intro
rn-app-intro is a react native component implementing a parallax effect welcome page using base on react-native-swiper , similar to the one found in Google's app like Sheet, Drive, Docs...
Stars: ✭ 82 (-16.33%)
Mutual labels:  parallax
React Responsive Picture
A future-proof responsive image component that supports latest Picture specification
Stars: ✭ 91 (-7.14%)
Mutual labels:  react-component
React Siema
ReactSiema Demo
Stars: ✭ 90 (-8.16%)
Mutual labels:  carousel
Parallax Vanilla
Seamless and lightweight parallax scrolling library implemented in pure JavaScript utilizing Hardware acceleration for extra performance.
Stars: ✭ 81 (-17.35%)
Mutual labels:  parallax
Reactjs Popup
React Popup Component - Modals,Tooltips and Menus —  All in one
Stars: ✭ 1,211 (+1135.71%)
Mutual labels:  react-component
Refluent
A chainable & composable alternative React component API.
Stars: ✭ 75 (-23.47%)
Mutual labels:  react-component

React Native Swipeable Parallax Carousel

npm version

Android & iOS // React Native v0.46+

Preview

Carousel with parallax effect, overlay and dots navigation

Preview

Carousel without parallax effect, without overlay and with bars navigation

Get started

Installation

Run: $ npm install react-native-swipeable-parallax-carousel --save

Usage

import SwipeableParallaxCarousel from 'react-native-swipeable-parallax-carousel';

const datacarousel = [
  {
      "id": 339964,
      "title": "Valerian and the City of a Thousand Planets",
      "imagePath": "https://image.tmdb.org/t/p/w780/o6OhxtsgMurL4h68Uqei0aSPMNr.jpg",
  },
  {
      "id": 315635,
      "imagePath": "https://image.tmdb.org/t/p/w780/fn4n6uOYcB6Uh89nbNPoU2w80RV.jpg",
  },

  ...

  {
      "id": 339403,
      "title": "Baby Driver",
      "subtitle": "More than just a trend",
      "imagePath": "https://image.tmdb.org/t/p/w780/xWPXlLKSLGUNYzPqxDyhfij7bBi.jpg",
  },
];

<SwipeableParallaxCarousel
  data={datacarousel}
/>

Properties

Prop Description Default Required
data An array with all your items. Read bellow about Data array structure. None Yes
align Title alignment. Could be left, right or center. left No
titleColor Color title. #ffffff No
navigation Display a navigation bar or not. Boolean true or false. true No
navigationColor Color of the current item in the navigation bar. #ffffff No
navigationType Navigation bar type. 3 types available: dots, bars or squares. See navigationType examples for illustrations. dots No
height Carousel height. 200 No
parallax Parallax effect while scrolling. Boolean true or false. true No
overlayPath Image ressource to overlay item image. For example: {require('../assets/images/itemGradient.png')} None No
onPress A function called when an item is pressed None No
parentScrollViewRef Reference of the parent ScrollView. Read bellow about Make your carousel ScrollView friendly None No

Data array structure

Your data array must be an array of objects with at least an id and an imagePath key.

Prop Description Required
id Item ID. Yes
title Item title. Omit this prop if you don't want a title. No
subtitle Item subtitle. Omit this prop if you don't want a subtitle. No
imagePath Item image path. Yes
const datacarousel = [
  {
      "id": 339964,
      "title": "Valerian and the City of a Thousand Planets",
      "imagePath": "https://image.tmdb.org/t/p/w780/o6OhxtsgMurL4h68Uqei0aSPMNr.jpg",
  },
  {
      "id": 315635,
      "imagePath": "https://image.tmdb.org/t/p/w780/fn4n6uOYcB6Uh89nbNPoU2w80RV.jpg",
  },
  {
      "id": 339403,
      "title": "Baby Driver",
      "subtitle": "More than just a trend",
      "imagePath": "https://image.tmdb.org/t/p/w780/xWPXlLKSLGUNYzPqxDyhfij7bBi.jpg",
  },
];

navigationType examples

You can easily customize your navigation bar with navigationType: use dots, barsor squares to give a different look at your navigation items. Remember you can also use navigationColor to change the color of the current item in your navigation bar.

Navigation types

Dots, bars and squares navigation

Make your carousel ScrollView friendly

In order to use your carousel component inside a ScrollView and avoid any conflicts while scrolling, you need to use parentScrollViewRef prop.

<ScrollView
  ref={(c) => { this.parentScrollView = c; }}
>

  ...

  <SwipeableCarousel
    data={datacarousel}
    parentScrollViewRef={this.parentScrollView}
  />

  ...

</ScrollView>

Demo

Questions or suggestions?

Feel free to contact me on Twitter or create an issue.

License

This project is licenced under the MIT License.

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].