GithubHelp home page GithubHelp logo

Comments (9)

wootwoot1234 avatar wootwoot1234 commented on June 10, 2024

I'm getting this error too. I just upgraded from react native 0.17 to 0.20.

from react-native-html-to-pdf.

sterndm avatar sterndm commented on June 10, 2024

wootwoot1234,
were you able to fix it or do you have any clue how to fix this?

from react-native-html-to-pdf.

wootwoot1234 avatar wootwoot1234 commented on June 10, 2024

Yes. I need to submit a push request with the fix.

This will fix the error.

Add this to the top of RNHTMLtoPDF.m:

#import "RCTUtils.h"

and change line 132 of RNHTMLtoPDF.m from:

_rejectBlock(error);

to:

_rejectBlock(RCTErrorUnspecified, nil, RCTErrorWithMessage(error.description));

from react-native-html-to-pdf.

sterndm avatar sterndm commented on June 10, 2024

Yes,
This fixed it! Thanks so much :)

from react-native-html-to-pdf.

wootwoot1234 avatar wootwoot1234 commented on June 10, 2024

@sterndm don't close this issue until it's fixed in the code. Do you mind reopening it and letting @christopherdro close it when a fix has been committed? Thanks!

from react-native-html-to-pdf.

sterndm avatar sterndm commented on June 10, 2024

Oh, my bad. Reopened it.

from react-native-html-to-pdf.

sterndm avatar sterndm commented on June 10, 2024

Quick question. I'm now making an android version of my app. Does this work on android?

from react-native-html-to-pdf.

christopherdro avatar christopherdro commented on June 10, 2024

Not at the moment. :( Will try to add support when I get some free time.

from react-native-html-to-pdf.

sterndm avatar sterndm commented on June 10, 2024

Would be much appreciated! You're my only hope on generating a PDF in RN :)

from react-native-html-to-pdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.