-
Notifications
You must be signed in to change notification settings - Fork 1.6k
undefined is not an object (evaluating 'RNFetchBlob.DocumentDir') #350
Comments
Seems similar to #30, #51, #84 and #251 but so far none of the suggestions helped. This is on a fresh install with latest react-native 0.44 I did notice that my xcode project did not have any RNFetchBlob references, even though I did My issues were resolved by simply running |
same problem with RN 42.0. Open Xcode and re-build the project, then it is fixed. |
|
I had the same problem on Android and it's because, despite having called I fixed it by following the instructions to manually link there: https://github.com/wkh237/react-native-fetch-blob/wiki/Manually-Link-Package Then I've deleted my "android/build" and "android/app/build" folders and ran |
I got this error when I was running the dev server of a different app than I was launching. Took me a couple minutes to figure it out, so maybe this will help someone who tried everything else. |
After linking you need to run |
First, I have looked at the trouble shooting page of the wiki, however I still cannot fix the problem I am having.
import FileUploader from 'react-native-file-uploader'
and
Here is the error I am getting:
Here is what I did to install
react-native-fetch-blob
:npm install --save github:wkh237/react-native-fetch-blob-package#master
react-native link
I have tried importing it with both
import RNFetchBlob from 'react-native-fetch-blob'
andvar RNFetchBlob = require('react-native-fetch-blob').default
I have tried installing it with the above code and also with
npm install --save react-native-fetch-blob
Thank you in advance for your help!
The text was updated successfully, but these errors were encountered: