Skip to content

Commit edfca9a

Browse files
committed
reset change
1 parent c93f08b commit edfca9a

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

src/components/Search/SearchList.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import React, {forwardRef, useCallback, useEffect, useImperativeHandle, useMemo,
55
import type {ForwardedRef} from 'react';
66
import {View} from 'react-native';
77
import type {NativeSyntheticEvent, StyleProp, ViewStyle} from 'react-native';
8-
import Animated, {FadeOutUp, Keyframe, LinearTransition} from 'react-native-reanimated';
8+
import Animated, {FadeOutUp, LinearTransition} from 'react-native-reanimated';
99
import Checkbox from '@components/Checkbox';
1010
import * as Expensicons from '@components/Icon/Expensicons';
1111
import MenuItem from '@components/MenuItem';
@@ -312,16 +312,6 @@ function SearchList(
312312

313313
useImperativeHandle(ref, () => ({scrollAndHighlightItem, scrollToIndex}), [scrollAndHighlightItem, scrollToIndex]);
314314

315-
const Exiting = new Keyframe({
316-
from: {
317-
height: '100%',
318-
},
319-
to: {
320-
height: '0%',
321-
easing
322-
}
323-
})
324-
325315
const renderItem = useCallback(
326316
// eslint-disable-next-line react/no-unused-prop-types
327317
({item, index}: {item: SearchListItem; index: number}) => {
@@ -331,7 +321,7 @@ function SearchList(
331321

332322
return (
333323
<Animated.View
334-
exiting={shouldAnimate ? Exiting.duration(CONST.SEARCH.EXITING_ANIMATION_DURATION) : undefined}
324+
exiting={shouldAnimate ? FadeOutUp.duration(CONST.SEARCH.EXITING_ANIMATION_DURATION).easing(easing) : undefined}
335325
entering={undefined}
336326
style={styles.overflowHidden}
337327
layout={shouldAnimate && hasItemsBeingRemoved ? LinearTransition.easing(easing).duration(CONST.SEARCH.EXITING_ANIMATION_DURATION) : undefined}

0 commit comments

Comments
 (0)