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

initial scroll index not working #21

Open
avinash-bhosale opened this issue May 14, 2021 · 1 comment
Open

initial scroll index not working #21

avinash-bhosale opened this issue May 14, 2021 · 1 comment

Comments

@avinash-bhosale
Copy link

i am passing initial scroll index but it's not working.
it is starting from 0, not from the index i sent.

<FlatListSlider onPress={()=>{}} initialScrollIndex={this.state.index} currentIndexCallback={this.getItemOfIndex} data={this.state.data} autoscroll={false} />

@WaldmannIoTDevelopers
Copy link

... same problem for me.

This could be fix by simply adding
initialScrollIndex={this.props.initialScrollIndex}
to the in FlatListSlider.js:85

Hope that the author fix this problem in a soon release?
Thanks in advance!

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