REF: Latest package supports function on both OS

This commit is contained in:
Marcos Rodriguez Velez 2024-11-10 01:07:35 -04:00
parent 0688bde325
commit 6d84fd9454

View File

@ -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) {