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

Unhandled Promise Rejection: iOS only

Open shibbyy opened this issue 6 years ago • 10 comments

Unable to create PDF on iOS Possible Unhandled Promise Rejection TypeError: null is not an object (evaluating '_PDFLib.default.createPDF')

shibbyy avatar Nov 11 '19 19:11 shibbyy

@Hopding @jacargentina any help will be deeply appreciated.

shibbyy avatar Nov 11 '19 19:11 shibbyy

@shibbyy what version of React Native are you on and have you correctly linked the library?

thekevinbrown avatar Nov 12 '19 07:11 thekevinbrown

@thekevinbrown I'm on RN 0.60.4 and I've correctly linked the library. I followed the docs as it is.

shibbyy avatar Nov 12 '19 19:11 shibbyy

Could you provide an example project so I can reproduce on my side?

thekevinbrown avatar Nov 12 '19 23:11 thekevinbrown

Hi @thekevinbrown, I'm experiencing the same. I've a reproduction on this issue https://github.com/Hopding/react-native-pdf-lib/issues/57

Thanks

danielezra avatar Nov 15 '19 12:11 danielezra

+1 TypeError: null is not an object (evaluating '_PDFLib.default.createPDF')

RN 63 react-native-pdf-lib: 1.0.0

Please provide a solution on this, (working fine on android).

suhask-iprogrammer avatar Jul 31 '20 15:07 suhask-iprogrammer

Any news?

danroweb avatar Sep 15 '20 10:09 danroweb

Pull requests are still welcome.

thekevinbrown avatar Sep 16 '20 00:09 thekevinbrown

2021 and the Problem still exists :) like mentioned before, running fine on android, error occurs on iOS Device v. 12.5.4

Running on "react-native": "^0.64.2", "react-native-pdf-lib": "^1.0.0",

bwnstck avatar Aug 26 '21 18:08 bwnstck

i switched to this library without any problems :) https://github.com/Anyline/react-native-image-to-pdf

bwnstck avatar Aug 27 '21 09:08 bwnstck