mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2024-11-19 01:40:12 +01:00
REF: Latest package supports function on both OS
This commit is contained in:
parent
0688bde325
commit
6d84fd9454
@ -75,14 +75,15 @@ export const AddressInputScanButton = ({
|
|||||||
case CommonToolTipActions.PasteFromClipboard.id:
|
case CommonToolTipActions.PasteFromClipboard.id:
|
||||||
try {
|
try {
|
||||||
let getImage: string | null = null;
|
let getImage: string | null = null;
|
||||||
|
let hasImage = false;
|
||||||
if (Platform.OS === 'android') {
|
if (Platform.OS === 'android') {
|
||||||
getImage = await Clipboard.getImage();
|
hasImage = true;
|
||||||
} else {
|
} else {
|
||||||
const hasImage = await Clipboard.hasImage();
|
hasImage = await Clipboard.hasImage();
|
||||||
if (hasImage) {
|
}
|
||||||
getImage = await Clipboard.getImageJPG();
|
|
||||||
}
|
if (hasImage) {
|
||||||
|
getImage = await Clipboard.getImage();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getImage) {
|
if (getImage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user