Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Observing onScrollToPage event #1

Closed
me-abhinav opened this issue Oct 13, 2016 · 0 comments
Closed

Observing onScrollToPage event #1

me-abhinav opened this issue Oct 13, 2016 · 0 comments

Comments

@me-abhinav
Copy link

me-abhinav commented Oct 13, 2016

It will be useful if there is a function prop for observing the scroll events like onScrollToPage / onScrollToItem. e.g.

<Carousel
    ref={'carousel'}
    onScrollToPage={(page) => {
        console.log(page);
    }}
    items={this.state.entries}
    renderItem={this._renderItem}
    sliderWidth={sliderWidth}
    itemWidth={itemWidth}
    slideStyle={styles.slide} />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants