react-native-html-to-pdf icon indicating copy to clipboard operation
react-native-html-to-pdf copied to clipboard

Cannot read property 'convert' of null : this occurs while using react native expo

Open LuckyBelieve opened this issue 1 year ago • 2 comments

while using react native with expo const file = await RNHTMLtoPDF.convert(Options) this line line seems not to work and the error given is

"Cannot read property 'convert' of null"

searched through all documentations and found that for react native with expo there is no way that this file can be created

LuckyBelieve avatar May 17 '24 18:05 LuckyBelieve

Did you build a new development client after adding react-native-html-to-pdf to your project's dependencies?

thegreatzeus avatar May 24 '24 10:05 thegreatzeus

@LuckyBelieve You should switch to the development build instead of Expo Go

HERYORDEJY avatar Jul 08 '24 14:07 HERYORDEJY

still have the exact same issue rn

myudak avatar Apr 06 '25 12:04 myudak

Hi there! 👋

I just published a new version 1.2.0 which supports the new architecture and uses turbo modules.

Please give it a try and let me know if you're still coming across this issue

Thanks for your patience! 🙏

christopherdro avatar Sep 04 '25 04:09 christopherdro

Function seems to be changed i was having same issue, it resolve by using this

let file = await generatePDF(options);

BhavyaKoshiya avatar Sep 23 '25 07:09 BhavyaKoshiya