-
Notifications
You must be signed in to change notification settings - Fork 135
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
TypeError: null is not an object (evaluating 'ReactNativeBlobUtil.DocumentDir') #157
Comments
I'm also seeing this issue. Strangely, the problem only happens when I run |
I encountered this as well. It looks like auto linking isn't configured properly for android. I believe to fix this,
To work around this before it's fixed, you can configure manually linking. Of course, those instructions aren't quite right either. They reference the old class and package names. Rename |
fyi the repo I'm working on has an unconventional setup, but I fixed this issue by running |
Oh, I suspect it may also work if you have |
Could be, I use |
@RonRadtke My best guess is this isn't a problem caused by this library, but instead any other issue that causes the React Native bundler not to resolve the native modules. A good solution might be to update it not to crash when the native module isn't found, so people aren't drawn to the conclusion that there may be a problem with this library |
@RonRadtke I can confirm the changes above resolve the issue for me. I pulled the repo and tested it locally. I ended up simply going with manual linking however to avoid having to fork the repo in the short term. If you use I suspect the issue doesn't happen if you have |
I have the same issue with react-native-blob-util 0.13.7 and react native 0.64.3 |
I tried both adding |
The library doesn't work with expo since it is using native code |
Hey together, had some problems with react-native-pdf which is relying on this library as it seems. Anyhow, whoever uses Expo might be interested in how to run native code - might help resolving your issues: |
I am using react-native-blob-util because rn-fetch-blob has not been updated since 5 years ago and I have this error which happens with rn-fetch-blob too:
TypeError: null is not an object (evaluating 'ReactNativeBlobUtil.DocumentDir')
I am using react-native 0.68.1 and this only happened on android and not iOS.
If someone has already faced the issue.
"react-native": "0.68.1",
"react-native-blob-util": "^0.16.0",
The text was updated successfully, but these errors were encountered: