diff --git a/src/components/Global/components/item-row.tsx b/src/components/Global/components/item-row.tsx index 5496ea10..2d72938a 100644 --- a/src/components/Global/components/item-row.tsx +++ b/src/components/Global/components/item-row.tsx @@ -16,7 +16,7 @@ import useItemContext from '../../../hooks/use-item-context' import { RouteProp, useRoute } from '@react-navigation/native' import React, { useCallback, useState } from 'react' import { LayoutChangeEvent } from 'react-native' -import Animated, { useAnimatedStyle } from 'react-native-reanimated' +import Animated, { useAnimatedStyle, withTiming } from 'react-native-reanimated' import { useSwipeableRowContext } from './swipeable-row-context' import SwipeableRow from './SwipeableRow' import { useSwipeSettingsStore } from '../../../stores/settings/swipe' @@ -166,7 +166,6 @@ export default function ItemRow({ > - + {renderRunTime ? ( {item.RunTimeTicks} ) : item.Type === 'Playlist' ? ( @@ -219,7 +218,7 @@ function ItemRowDetails({ item }: { item: BaseItemDto }): React.JSX.Element { const shouldRenderGenres = item.Type === 'Playlist' || item.Type === BaseItemKind.MusicArtist return ( - + {item.Name ?? ''} @@ -264,18 +263,18 @@ function HideableArtwork({ const { tx } = useSwipeableRowContext() // Hide artwork as soon as swiping starts (any non-zero tx) const style = useAnimatedStyle(() => ({ - opacity: tx.value === 0 ? 1 : 0, + opacity: tx.value === 0 ? withTiming(1) : 0, })) return ( - + - + ) }