christopherdro / react-native-html-to-pdf

Convert html strings to PDF documents using React Native
MIT License
434 stars 264 forks source link

Cannot read properties of undefined (reading 'convert') #271

Closed namikarif closed 1 year ago

namikarif commented 2 years ago

import RNHTMLtoPDF from 'react-native-html-to-pdf';

`async createPDF(html) { let options = { html: html, fileName: 'test', directory: 'Documents', };

    let file = await RNHTMLtoPDF.convert(options)
    console.log('filePath : ', file.filePath);
    // alert(file.filePath);
}`
Raheel1258 commented 2 years ago

Linking issue. Run this commmand: react-native link react-native-html-to-pdf

stale[bot] commented 1 year ago

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.