diff --git a/screen/receive/details.js b/screen/receive/details.js
index df089884b..b694a2cad 100644
--- a/screen/receive/details.js
+++ b/screen/receive/details.js
@@ -1,16 +1,6 @@
import { useFocusEffect, useRoute } from '@react-navigation/native';
import React, { useCallback, useEffect, useRef, useState } from 'react';
-import {
- BackHandler,
- InteractionManager,
- KeyboardAvoidingView,
- Platform,
- ScrollView,
- StyleSheet,
- Text,
- TextInput,
- View,
-} from 'react-native';
+import { BackHandler, InteractionManager, ScrollView, StyleSheet, Text, TextInput, View } from 'react-native';
import Share from 'react-native-share';
import * as BlueElectrum from '../../blue_modules/BlueElectrum';
@@ -328,7 +318,6 @@ const ReceiveDetails = () => {
const createCustomAmountAddress = () => {
setIsCustom(true);
- bottomModalRef.current.dismiss();
let amount = tempCustomAmount;
switch (tempCustomUnit) {
case BitcoinUnit.BTC:
@@ -351,6 +340,7 @@ const ReceiveDetails = () => {
setCustomUnit(tempCustomUnit);
setBip21encoded(DeeplinkSchemaMatch.bip21encode(address, { amount, label: tempCustomLabel }));
setShowAddress(true);
+ bottomModalRef.current.dismiss();
};
const resetCustomAmount = () => {
@@ -365,49 +355,6 @@ const ReceiveDetails = () => {
bottomModalRef.current.dismiss();
};
- const renderCustomAmountModal = () => {
- return (
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- );
- };
-
const handleShareButtonPressed = () => {
Share.open({ message: currentTab === loc.wallets.details_address ? bip21encoded : wallet.getBIP47PaymentCode() }).catch(error =>
console.log(error),
@@ -490,8 +437,43 @@ const ReceiveDetails = () => {
+
+
+
+
+
+
+
+
+
+
+
+
+
- {renderCustomAmountModal()}
>
);
};