mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 18:00:17 +01:00
ADD: Export file option for macOS
This commit is contained in:
parent
ab9492bc38
commit
6c811797ff
@ -57,8 +57,12 @@ export default class SendCreate extends Component {
|
||||
await RNFS.writeFile(filePath, this.state.tx);
|
||||
Share.open({
|
||||
url: 'file://' + filePath,
|
||||
saveToFiles: true,
|
||||
})
|
||||
.catch(error => console.log(error))
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
alert(error.message);
|
||||
})
|
||||
.finally(() => {
|
||||
RNFS.unlink(filePath);
|
||||
});
|
||||
|
@ -290,8 +290,12 @@ export default class PsbtWithHardwareWallet extends Component {
|
||||
await RNFS.writeFile(filePath, typeof this.state.psbt === 'string' ? this.state.psbt : this.state.psbt.toBase64());
|
||||
Share.open({
|
||||
url: 'file://' + filePath,
|
||||
saveToFiles: true,
|
||||
})
|
||||
.catch(error => console.log(error))
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
alert(error.message);
|
||||
})
|
||||
.finally(() => {
|
||||
RNFS.unlink(filePath);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user