Git Product home page Git Product logo

react-native-spring-carousel's People

Contributors

cornedor avatar notlose avatar whatakitty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-spring-carousel's Issues

Remove event listeners and stop timers when component unmounts

Good work!

I'm notice that after unmount Carousel tries update scrollPanel props and this cause an error.

May be fixed by

componentWillUnmount: function() {
  // clearTimeout(this.timer_id);
  // clearTimeout(this.timer_id2);
  this._scrollSpring.removeAllListeners();
},

No looping

Right now, when you provide a speed, the carousel will swipe itself through its views.

I would need a boolean property that I could set to prevent carousel from looping back to the first children. In other words, it will swipe every view only once.

Support React Native 0.25

Hi I have warning since 0.25, React and Component should be imported from react, and the native stuffs should be imported from react-native, so:

var React = require('react-native')
var { PanResponder, View, StyleSheet, Dimensions, PropTypes} = React

should now be

var React = require('react');
var { PropTypes } = React;
var { PanResponder, View, StyleSheet, Dimensions } = require('react-native');

Ref: https://github.com/facebook/react-native/releases/tag/v0.25.1

How to capture 'onSlideComplete'

Everytime a carousel changes a slide (automatically or by manual swipe), I want to register that event, and capture the index.
The example has an 'onPress' function, which only works if you click on the area. What I'm looking for is more like a 'onSlideComplete'.

Can this be done?

Start/End gesture callbacks

Hi !

First, nice repository ! ๐Ÿ‘
Then, you should add callbacks on start and end of the swiping gesture.
I've implemented this every quickly and maybe not the way you would like. :)

Have good day! ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.