Closed sagarrs closed 3 years ago
Here is the solution
const createpdf=()=>{ options = { html:htmlForInvoice("Sunil","praja@gmail.com","8437513006","$100"), fileName: 'tGenieInvoice_' + uuid.v4(), directory: 'Documents', };
try {
let file = await RNHTMLtoPDF.convert(options)
console.log(file.filePath);
openGeneratedPDF(file.filePath, 'application/pdf');
} catch (err) {
console.error(err)
}
}
"export default function htmlForInvoice( name: string, email: string, phone: string, pay: string, ) { let temp = 'sunil'; return `
`; }"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi i am making a API call in react native i want to pass the response of that API call to html and receive data from html to react native can someone please tell me how to achieve it ? there is no "options" to send or receive data.