Open StDensity opened 2 weeks ago
Try this Code
code:
// Import the required function from the package
import nayan from "nayan-media-downloader";
export const downloadMediaFromTwitter = async (
url = "https://x.com/FAFO_TV/status/1853548178114486357"
) => {
try {
const data = await nayan.alldown(url);
console.log("Download successful:", data);
return data;
} catch (error) {
console.error("Error downloading media:", error);
throw error;
}
};
// Call the function
downloadMediaFromTwitter();
It isn't working
ERROR SyntaxError: 1:6578:async functions are unsupported, js engine: hermes [Component Stack]
I works when i try it with node. But not when using react native expo
Contact wp: wa.me/+8801615298449
Is telegram good?
code: