react native scrollview scrollto() code example
Example: react native scrollview scrollto()
setTimeout(() => {
this.scrollView.scrollTo({ x: DEVICE_WIDTH * current_index, y: 0, animated: false });
}, 1)
setTimeout(() => {
this.scrollView.scrollTo({ x: DEVICE_WIDTH * current_index, y: 0, animated: false });
}, 1)