AutoScroll when a new element is added to list:
const flatList = useRef(null);
<FlatList
ref= {flatList}
onContentSizeChange= {()=> flatList.current.scrollToEnd()}
/>
const flatListRef = React.useRef(null)
<FlatList
ref={flatListRef}
onContentSizeChange={() => {
flatListRef.current.scrollToEnd();
}}
/>