Skip to content
This repository has been archived by the owner on Mar 16, 2019. It is now read-only.

“RNFetchBlob.fetch is not a function” #58

Closed
Larney11 opened this issue Jul 19, 2016 · 2 comments
Closed

“RNFetchBlob.fetch is not a function” #58

Larney11 opened this issue Jul 19, 2016 · 2 comments

Comments

@Larney11
Copy link

I keep receiving the error “RNFetchBlob.fetch is not a function”.

I put a more detailed description of the error on StackOverflow if anyone cares to take a look. Thanks.

@Larney11
Copy link
Author

The problem was I was importing the package wrong.

I was importing it with:
var RNFetchBlob = require('react-native-fetch-blob');

When it should have been:
var RNFetchBlob = require('react-native-fetch-blob').default;

I forgot the ".default".

@wkh237
Copy link
Owner

wkh237 commented Jul 19, 2016

@Larney11 , Thank you for point out this problem, though the problem has been solved, others who does not using ES6 may still run into the same situation.

I'll put related informations to Trouble Shooting page for reference. It is also considerable to change the way module is exported if possible, I'' open an issue for this.

Again, thank you for your information, please feel free to get back to here for further assistance 👍

ieschalier pushed a commit to ieschalier/react-native-fetch-blob that referenced this issue Jun 26, 2018
Bug Fix Branch 0.10.9 "...exposed beyond app through Intent.getData() " at Android N
julian-becker pushed a commit to julian-becker/react-native-fetch-blob that referenced this issue Mar 30, 2022
* Fixes import cycles
* Fixes problems for streaming files in combination with utf-8 encoding

Fixes wkh237#58
Fixes wkh237#51

Merge remote-tracking branch 'origin/develop' into master
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants