react-native-slideshow icon indicating copy to clipboard operation
react-native-slideshow copied to clipboard

Problem while moving the slide

Open moonlinefoolks opened this issue 8 years ago • 2 comments

Please fix it, when I slide from the last slide to the first the position still leads to the last one. After the last slide time has run out, the new slide will move to the first slide. please fix it so that the slide follows after sliding and slide a little lag. mantep mas, lanjutkan!

moonlinefoolks avatar Oct 11 '17 06:10 moonlinefoolks

set ScrollView pagingEnabled={true} in file Slideshow.js.

duyanpham avatar Dec 06 '17 06:12 duyanpham

add this code for change indicator in file Slideshow.js in ScrollView after add pagingEnabled={true}

onMomentumScrollEnd={(e) =>{ var offset = e.nativeEvent.contentOffset; if(offset) { const WIDTH = Dimensions.get('window').width; var page = Math.round(offset.x / WIDTH); if(this.state.position != page) { this.setState({position: page}); } } }}

nendijuned avatar Jan 19 '18 07:01 nendijuned