react-native-flatlist-slider icon indicating copy to clipboard operation
react-native-flatlist-slider copied to clipboard

initial scroll index not working

Open avinash-bhosale opened this issue 3 years ago • 1 comments

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} />

avinash-bhosale avatar May 14 '21 06:05 avinash-bhosale

... same problem for me.

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

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

WaldmannIoTDevelopers avatar Apr 27 '23 12:04 WaldmannIoTDevelopers