Git Product home page Git Product logo

react-native-card-carousel's People

Contributors

wcandillon avatar yjy5264 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  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  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-card-carousel's Issues

太棒了

正是我需要的,先看看源码,再用一下~

I think it's better to stop timer when dragging

like this

<ScrollView
    style = {{width: this.moveDistance, height: this.height, position: 'absolute', left: (this.width-this.moveDistance)/2, top: 0}}
    horizontal = {true}
    pagingEnabled = {true}
    ref = {ref => this.assistScroll = ref}
    onScroll = {e => this._onAssistScroll(e)}
    scrollEventThrottle = {16}
    showsHorizontalScrollIndicator = {false}
    // stop timer when dragging
    onScrollBeginDrag = {() => this._stopInterval()}
    // start timer when dragging end
    onScrollEndDrag = {() => this._startInterval()}
>
    {this._getView()}
</ScrollView>

能否加个自动轮播功能

能否加个自动轮播功能,目前看到源码好像没这个实现。
本人能力有限实现起来有难度,能否麻烦请楼主实现个?

Make styles configurable through properties

Thanks for writing this nice component. One improvement - make the styles configurable through properties that get passed by parent component. I see right now the height, width, shadow etc are all hard-coded or determined within the component based on device height, width etc. It will be better if parent component can pass the required styles from outside and this component simply honor those.

For instance, I want cards to be of half a screen, but as right now its determined inside and its hard-coded as 250 px, I can not have a card of variable height.

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.