-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot Read propertly getDocumentsDirectory of undefined in IOS only #62
Comments
This sounds like the module isn't correctly linked. https://facebook.github.io/react-native/docs/linking-libraries-ios Can you follow the steps there and let me know if you're still having trouble? |
I got the same issue. Followed manual linking steps on react-native documentation.
|
Same for me and it's well linked |
A reproduction would help us troubleshoot it. This is working in my projects so it's hard to tell what the issue could be. |
Same issue here. Just copy and pasted the example code. I installed with:
|
Same for me. I installed it this way: I am getting |
@costvin15 I’d recommend using pdf-lib. It works perfectly for me with no native dependencies. |
Thanks @EricWiener, I will search on. I am now using react-native-html-to-pdf and it is serving me well. |
@EricWiener, and @costvin15 I don't see the linking step there in the installation, which would cause this. Ultimately if the PDFs you're using are small enough to be able to use the pure JS implementation then that's what I'd recommend too as having native modules adds complexity. |
facing the problem in android not ios |
Same in iOS. It looks like there is an issue with auto-linking in React Native 0.60+ |
I'm using this library on React Native 59, and would welcome a PR to support auto-linking for 60+. |
I'm getting the same issue in IOS react-native": "0.62.2". When can we expect to fix this issue for the latest react native version? |
@venkat-waran when someone either creates a new PR to solve the issue, or takes ownership of getting #65 over the line. |
This issue is still happening. |
Possible Unhandled Promise Rejection (id: 0): TypeError: Cannot read property 'getDocumentsDirectory' of null how to resolve this |
anyone can help me solve it ?
The text was updated successfully, but these errors were encountered: