BarCodeScanner from image url (BarCodeScanner.scanFromURLAsync)

I want to get data and type of the given image URL as a result when using BarCodeScanner.scanFromURLAsync. But I am getting undefined for type and data. How can I implement the code to get the truth result from BarCodeScanner.scanFromURLAsync.

This is my code
import { BarCodeScanner} from "expo-barcode-scanner";
export default async function BarcodeScannerFromUri(uri: any) {
console.log(uri);
const { type, data } = await BarCodeScanner.scanFromURLAsync(uri); console.log(type);
console.log(data);
}
This is the result from the code implemented:

And this is the docs of the BarCodeScanner: https://docs.expo.dev/versions/latest/sdk/bar-code-scanner/?redirected#props