diff --git a/src/pages/home/report/ReportActionsList.tsx b/src/pages/home/report/ReportActionsList.tsx index 676c27ec59715..b747454942727 100644 --- a/src/pages/home/report/ReportActionsList.tsx +++ b/src/pages/home/report/ReportActionsList.tsx @@ -3,11 +3,10 @@ import {useIsFocused, useRoute} from '@react-navigation/native'; import type {RouteProp} from '@react-navigation/native'; import type {DebouncedFunc} from 'lodash'; import React, {memo, useCallback, useEffect, useMemo, useRef, useState} from 'react'; -import {DeviceEventEmitter, InteractionManager} from 'react-native'; +import {DeviceEventEmitter, InteractionManager, View} from 'react-native'; import type {LayoutChangeEvent, NativeScrollEvent, NativeSyntheticEvent, StyleProp, ViewStyle} from 'react-native'; import {useOnyx} from 'react-native-onyx'; import type {OnyxEntry} from 'react-native-onyx'; -import Animated, {useAnimatedStyle, useSharedValue, withTiming} from 'react-native-reanimated'; import InvertedFlatList from '@components/InvertedFlatList'; import {AUTOSCROLL_TO_TOP_THRESHOLD} from '@components/InvertedFlatList/BaseInvertedFlatList'; import {usePersonalDetails} from '@components/OnyxProvider'; @@ -164,7 +163,6 @@ function ReportActionsList({ const {isOffline} = useNetwork(); const route = useRoute>(); - const opacity = useSharedValue(0); const reportScrollManager = useReportScrollManager(); const userActiveSince = useRef(DateUtils.getDBTime()); const lastMessageTime = useRef(null); @@ -300,14 +298,6 @@ function ReportActionsList({ const isLastPendingActionIsDelete = sortedReportActions?.[0]?.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE; const [isFloatingMessageCounterVisible, setIsFloatingMessageCounterVisible] = useState(false); - const animatedStyles = useAnimatedStyle(() => ({ - opacity: opacity.value, - })); - - useEffect(() => { - // eslint-disable-next-line react-compiler/react-compiler - opacity.value = withTiming(1, {duration: 100}); - }, [opacity]); useEffect(() => { if ( @@ -652,7 +642,7 @@ function ReportActionsList({ isActive={(isFloatingMessageCounterVisible && !!unreadMarkerReportActionID) || canScrollToNewerComments} onClick={scrollToBottomAndMarkReportAsRead} /> - + - + ); }