Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

flatlist scrolltoend


AutoScroll when a new element is added to list:

const flatList = useRef(null);

<FlatList
	ref= {flatList}
	onContentSizeChange= {()=> flatList.current.scrollToEnd()} 
/> 
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #flatlist #scrolltoend
ADD COMMENT
Topic
Name
8+4 =