📌  相关文章
📜  React Native Expo Scrollview 滚动到底部 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:24.428000             🧑  作者: Mango

代码示例1
import React, { useRef } from 'react';
import { ScrollView } from 'react-native';

const ScreenComponent = (props) => {
  const scrollViewRef = useRef();
  return (
     scrollViewRef.current.scrollToEnd({ animated: true })}
    />
  );
};