'How can I specify the name of pdf print for react native project for iOS

I'm using both expo-print and expo-sharing to save file.

const { uri } = await Print.printToFileAsync({html});
await shareAsync(uri, { UTI: ".pdf", mimeType: "application/pdf" });

by default it is using UUID, I want to specify the file eg, abc.pdf, but I don't see the doc has any option to setup the file name.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source