mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-03-26 08:55:56 +01:00
FIX: Only show direct export if its on desktop
This commit is contained in:
parent
6c811797ff
commit
54924e0090
2 changed files with 4 additions and 2 deletions
|
@ -25,7 +25,9 @@ import Privacy from '../../Privacy';
|
|||
import { BitcoinUnit } from '../../models/bitcoinUnits';
|
||||
import loc from '../../loc';
|
||||
import { BlueCurrentTheme } from '../../components/themes';
|
||||
import { getSystemName } from 'react-native-device-info';
|
||||
const currency = require('../../blue_modules/currency');
|
||||
const isDesktop = getSystemName() === 'Mac OS X';
|
||||
|
||||
export default class SendCreate extends Component {
|
||||
constructor(props) {
|
||||
|
@ -57,7 +59,7 @@ export default class SendCreate extends Component {
|
|||
await RNFS.writeFile(filePath, this.state.tx);
|
||||
Share.open({
|
||||
url: 'file://' + filePath,
|
||||
saveToFiles: true,
|
||||
saveToFiles: isDesktop,
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
|
|
|
@ -290,7 +290,7 @@ 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,
|
||||
saveToFiles: isDesktop,
|
||||
})
|
||||
.catch(error => {
|
||||
console.log(error);
|
||||
|
|
Loading…
Add table
Reference in a new issue