Skip to content

Commit a7e0901

Browse files
committed
Switch scroll view
1 parent 50ca0df commit a7e0901

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

app/components/Views/confirmations/components/network-filter/network-filter.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
Text,
66
TextVariant,
77
} from '@metamask/design-system-react-native';
8-
import { ScrollView, Pressable, ImageSourcePropType } from 'react-native';
8+
import { Pressable, ImageSourcePropType } from 'react-native';
99
import { useTailwind } from '@metamask/design-system-twrnc-preset';
1010

1111
import { strings } from '../../../../../../locales/i18n';
@@ -19,6 +19,7 @@ import {
1919
useNetworkFilter,
2020
NETWORK_FILTER_ALL,
2121
} from '../../hooks/send/useNetworkFilter';
22+
import { ScrollView } from 'react-native-gesture-handler';
2223

2324
interface NetworkFilterTabProps {
2425
label: string;

app/components/Views/confirmations/components/send/asset/asset.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
TextColor,
99
TextVariant,
1010
} from '@metamask/design-system-react-native';
11-
import { ScrollView } from 'react-native';
1211

1312
import { useTheme } from '../../../../../../util/theme';
1413
import { strings } from '../../../../../../../locales/i18n';
@@ -24,6 +23,7 @@ import { NetworkFilter } from '../../network-filter';
2423
import { useEVMNfts } from '../../../hooks/send/useNfts';
2524
import { useAccountTokens } from '../../../hooks/send/useAccountTokens';
2625
import { useSafeAreaInsets } from 'react-native-safe-area-context';
26+
import { ScrollView } from 'react-native-gesture-handler';
2727

2828
export interface AssetProps {
2929
hideNfts?: boolean;
@@ -145,7 +145,11 @@ export const Asset: React.FC<AssetProps> = (props = {}) => {
145145
onExposeFilterControls={handleExposeFilterControls}
146146
onNetworkFilterChange={handleNetworkFilterChange}
147147
/>
148-
<ScrollView contentContainerStyle={{ paddingBottom: bottomOffset }}>
148+
<ScrollView
149+
contentContainerStyle={{
150+
paddingBottom: bottomOffset,
151+
}}
152+
>
149153
{hasNoResults && hasActiveFilters ? (
150154
<Box twClassName="items-center py-8 px-4">
151155
<Text variant={TextVariant.BodyMd} twClassName="text-center mb-4">

0 commit comments

Comments
 (0)