Answers for "react native start from bottom of scrollview"

0

React Native Expo Scrollview Scroll to bottom

import React, { useRef } from 'react';
import { ScrollView } from 'react-native';

const ScreenComponent = (props) => {
  const scrollViewRef = useRef();
  return (
    <ScrollView
      ref={scrollViewRef}
      onContentSizeChange={() => scrollViewRef.current.scrollToEnd({ animated: true })}
    />
  );
};
Posted by: Guest on October-30-2021

Code answers related to "react native start from bottom of scrollview"

Browse Popular Code Answers by Language