Skip to content

Commit ba7ccf2

Browse files
committed
fix(receive): elements not pressable on Android
1 parent 827fe4a commit ba7ccf2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

src/screens/Wallets/Receive/ReceiveDetails.tsx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { ReactElement, memo, useState, useEffect } from 'react';
22
import { useTranslation } from 'react-i18next';
3-
import { Image, StyleSheet, View } from 'react-native';
4-
import { FadeIn, FadeOut } from 'react-native-reanimated';
3+
import { Image, Platform, StyleSheet, View } from 'react-native';
4+
import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
55

66
import BottomSheetNavigationHeader from '../../../components/BottomSheetNavigationHeader';
77
import GradientView from '../../../components/GradientView';
@@ -27,7 +27,7 @@ import {
2727
updatePendingInvoice,
2828
} from '../../../store/slices/metadata';
2929
import { removeInvoiceTag, updateInvoice } from '../../../store/slices/receive';
30-
import { AnimatedView, BottomSheetTextInput } from '../../../styles/components';
30+
import { BottomSheetTextInput } from '../../../styles/components';
3131
import { TagIcon } from '../../../styles/icons';
3232
import { Caption13Up } from '../../../styles/text';
3333
import { estimateOrderFee } from '../../../utils/blocktank';
@@ -174,11 +174,12 @@ const ReceiveDetails = ({
174174
</View>
175175

176176
{!keyboardShown && (
177-
<AnimatedView
177+
<Animated.View
178178
style={styles.bottom}
179-
color="transparent"
180179
entering={FadeIn}
181-
exiting={FadeOut}>
180+
// FadeOut causing a bug on Android
181+
exiting={Platform.OS === 'ios' ? FadeOut : undefined}
182+
>
182183
<Caption13Up style={styles.label} color="secondary">
183184
{t('tags')}
184185
</Caption13Up>
@@ -209,7 +210,7 @@ const ReceiveDetails = ({
209210
<Image style={styles.image} source={imageSrc} />
210211
</View>
211212
)}
212-
</AnimatedView>
213+
</Animated.View>
213214
)}
214215

215216
<View style={styles.buttonContainer}>

0 commit comments

Comments
 (0)