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) {
const { type, data } = await BarCodeScanner.scanFromURLAsync(uri); console.log(type);
This is the result from the code implemented:

And this is the docs of the BarCodeScanner: