diff --git a/src/pages/logcat.tsx b/src/pages/logcat.tsx index fbf69ac..7c7a974 100644 --- a/src/pages/logcat.tsx +++ b/src/pages/logcat.tsx @@ -4,8 +4,7 @@ import React, { useEffect, useLayoutEffect, useMemo, - useRef, - useState, + useState } from 'react'; import { Animated, @@ -36,7 +35,6 @@ import { logFilePath, rootLog } from '../utils/logger'; export const Logcat = () => { const navigation = useNavigation(); - const logRef = useRef(null); const appTheme = useTheme(); const [isLoaded, setIsLoaded] = useState(false); @@ -152,8 +150,8 @@ export const Logcat = () => { return ( <> { } ListEmptyComponent={renderEmpty} persistentScrollbar - onLayout={() => { - logRef.current?.scrollToEnd(); - }} />