Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

auto scroll to view react-native

<ScrollView ref={view => this._scrollView = view} />
And set the scroll position elsewhere with:

scrollToRow(itemIndex) {
  this._scrollView.scrollTo({y:itemIndex * ROW_HEIGHT});
}
 
PREVIOUS NEXT
Tagged: #auto #scroll #view
ADD COMMENT
Topic
Name
8+1 =