Skip to content

Commit 4d332c8

Browse files
committed
add easing EasingFunctionFactory
1 parent edfca9a commit 4d332c8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/components/Search/SearchList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ 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, LinearTransition} from 'react-native-reanimated';
8+
import Animated, {Easing, 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';
1212
import Modal from '@components/Modal';
13-
import {easing} from '@components/Modal/ReanimatedModal/utils';
1413
import {usePersonalDetails} from '@components/OnyxListItemProvider';
1514
import {PressableWithFeedback} from '@components/Pressable';
1615
import type ChatListItem from '@components/SelectionList/ChatListItem';
@@ -40,6 +39,8 @@ import {createItemHeightCalculator} from './itemHeightCalculator';
4039
import ITEM_HEIGHTS from './itemHeights';
4140
import type {SearchQueryJSON} from './types';
4241

42+
const easing = Easing.bezier(0.76, 0.0, 0.24, 1.0);
43+
4344
const AnimatedFlashListComponent = Animated.createAnimatedComponent(FlashList<SearchListItem>);
4445

4546
type SearchListItem = TransactionListItemType | TransactionGroupListItemType | ReportActionListItemType | TaskListItemType;

0 commit comments

Comments
 (0)