Skip to content

Instantly share code, notes, and snippets.

@infinitbility
Created May 15, 2020 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save infinitbility/976f02fd36493f36a25947b9b45abe26 to your computer and use it in GitHub Desktop.
Save infinitbility/976f02fd36493f36a25947b9b45abe26 to your computer and use it in GitHub Desktop.
// auto scroll function
autosScroll(){
// X use for horizontal
let horizontalScroll = this.state.horizontalScroll;
// Y use for Vertical
let VerticalScroll = this.state.VerticalScroll;
this.ScrollView.scrollTo({x: horizontalScroll, y: VerticalScroll, animated: true});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment