diff --git a/screen/receive/details.js b/screen/receive/details.js index 632bbd60c..95a0ab3c6 100644 --- a/screen/receive/details.js +++ b/screen/receive/details.js @@ -11,6 +11,7 @@ import { TextInput, View, } from 'react-native'; +import LottieView from 'lottie-react-native'; import QRCodeComponent from '../../components/QRCodeComponent'; import { useNavigation, useRoute, useTheme, useFocusEffect } from '@react-navigation/native'; import Share from 'react-native-share'; @@ -25,7 +26,6 @@ import { BlueAlertWalletExportReminder, BlueCard, BlueSpacing40, - BlueBigCheckmark, } from '../../BlueComponents'; import navigationStyle from '../../components/navigationStyle'; import BottomModal from '../../components/BottomModal'; @@ -63,7 +63,7 @@ const ReceiveDetails = () => { const [initialUnconfirmed, setInitialUnconfirmed] = useState(0); const [displayBalance, setDisplayBalance] = useState(''); const fetchAddressInterval = useRef(); - const styles = StyleSheet.create({ + const stylesHook = StyleSheet.create({ modalContent: { backgroundColor: colors.modal, padding: 22, @@ -101,6 +101,9 @@ const ReceiveDetails = () => { backgroundColor: colors.elevated, justifyContent: 'space-between', }, + rootBackgroundColor: { + backgroundColor: colors.elevated, + }, scrollBody: { marginTop: 32, flexGrow: 1, @@ -145,6 +148,12 @@ const ReceiveDetails = () => { }, }); + useEffect(() => { + if (showConfirmedBalance) { + ReactNativeHapticFeedback.trigger('notificationSuccess', { ignoreAndroidSystemSettings: false }); + } + }, [showConfirmedBalance]); + // re-fetching address balance periodically useEffect(() => { console.log('receive/defails - useEffect'); @@ -171,7 +180,7 @@ const ReceiveDetails = () => { setInitialConfirmed(balance.confirmed); setInitialUnconfirmed(balance.unconfirmed); setIntervalMs(25000); - ReactNativeHapticFeedback.trigger('notificationSuccess', { ignoreAndroidSystemSettings: false }); + ReactNativeHapticFeedback.trigger('impactHeavy', { ignoreAndroidSystemSettings: false }); } const txs = await BlueElectrum.getMempoolTransactionsByAddress(address2use); @@ -239,20 +248,17 @@ const ReceiveDetails = () => { const renderConfirmedBalance = () => { return ( - - + + {isCustom && ( <> - + {customLabel} )} - - - - - + + {displayBalance} @@ -262,23 +268,21 @@ const ReceiveDetails = () => { const renderPendingBalance = () => { return ( - - + + {isCustom && ( <> - + {customLabel} )} - - - + - + {displayBalance} - + {eta} @@ -304,14 +308,14 @@ const ReceiveDetails = () => { const renderReceiveDetails = () => { return ( - - + + {isCustom && ( <> - + {getDisplayAmount()} - + {customLabel} @@ -320,10 +324,10 @@ const ReceiveDetails = () => { - + { return ( - + - + @@ -469,7 +473,7 @@ const ReceiveDetails = () => { @@ -502,7 +506,7 @@ const ReceiveDetails = () => { }; return ( - + {address !== undefined && showAddress && ( { ); }; +const styles = StyleSheet.create({ + icon: { + width: 400, + height: 400, + }, +}); + ReceiveDetails.navigationOptions = navigationStyle( { closeButton: true,