Skip to content

Commit

Permalink
Use FlatList in PaymentMethodList
Browse files Browse the repository at this point in the history
  • Loading branch information
thienlnam committed Apr 17, 2024
1 parent a936da0 commit 11647a3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/pages/settings/Wallet/PaymentMethodList.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import {FlashList} from '@shopify/flash-list';
import lodashSortBy from 'lodash/sortBy';
import type {ReactElement, Ref} from 'react';
import React, {useCallback, useMemo} from 'react';
import type {GestureResponderEvent, StyleProp, ViewStyle} from 'react-native';
import {View} from 'react-native';
import {FlatList, View} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import {withOnyx} from 'react-native-onyx';
import type {SvgProps} from 'react-native-svg/lib/typescript/ReactNativeSVG';
Expand Down Expand Up @@ -336,7 +335,7 @@ function PaymentMethodList({
return (
<>
<View style={[style, {minHeight: (filteredPaymentMethods.length + (shouldShowAddBankAccount ? 1 : 0)) * variables.optionRowHeight}]}>
<FlashList
<FlatList
estimatedItemSize={variables.optionRowHeight}

Check failure on line 339 in src/pages/settings/Wallet/PaymentMethodList.tsx

View workflow job for this annotation

GitHub Actions / typecheck

No overload matches this call.
data={filteredPaymentMethods}
renderItem={renderItem}
Expand Down

0 comments on commit 11647a3

Please sign in to comment.