Skip to content
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

RNFetchBlob.DocumentDir #244

Open
Ahsanch11 opened this issue Nov 24, 2018 · 12 comments
Open

RNFetchBlob.DocumentDir #244

Ahsanch11 opened this issue Nov 24, 2018 · 12 comments

Comments

@Ahsanch11
Copy link

#package.json

{
"name": "fante",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"native-base": "^2.8.1",
"react": "16.6.0-alpha.8af6728",
"react-native": "0.57.4",
"react-native-extra-dimensions-android": "^0.22.0",
"react-native-router-flux": "^4.0.6",
"react-native-wallpaper-manager": "^0.3.16",
"rn-fetch-blob": "^0.10.13"
},
"devDependencies": {
"babel-jest": "23.6.0",
"jest": "23.6.0",
"metro-react-native-babel-preset": "0.49.0",
"react-test-renderer": "16.6.0-alpha.8af6728"
},
"jest": {
"preset": "react-native"
}
}
capture

i just install the rn-fetch-blob and import it in to the component and it gives me the error
like undefined is not an object RNFetchBlob.DocumentDir.

could you please help me to figure out this bug.

@MikeWoots
Copy link

I fixed this by following the instructions on manually linking project rather running react-native link

@Ahsanch11
Copy link
Author

i tried it too but the issue is still exists.

@devpascoe
Copy link

had this issue because i forgot to rebuild the ios app. Instead was just refreshing simulator but link had added packages so i needed to rebuild and relaunch.

@hsnMoghadasi
Copy link

I have same issues on ios.

@hsnMoghadasi
Copy link

the automatical linking doesn't work for me.
I fixed it by following the instructions on manually linking.

https://github.com/hsnMoghadasi/rn-fetch-blob#user-content-installation

@tskorupka
Copy link

Maybe it has to be RNFetchBlob.fs.dirs.DocumentDir;

@EgidioCaprino
Copy link

We're having a similar issue after upgrading to React Native 0.60 and using auto linking.

Screenshot_20190801-112619_Yeppik

@fanzhiri
Copy link

We're having a similar issue after upgrading to React Native 0.60 and using auto linking.

Screenshot_20190801-112619_Yeppik

I have the same troubles

@pcowgill
Copy link

This fixed it for me when I ran into this issue on iOS:
(From the project root)
rm -rf ios/Pods && rm -rf ios/build && cd ios && pod install

@Temirtator
Copy link

Temirtator commented May 18, 2020

For me solution was gradlew clean and gradlew cleanBuildCache command on AS, then reinstalling of application.

@iamraajkanchan
Copy link

All the solution is for ios, what about the people using react native on Windows. Any suggestions.

@rajeevrocker7
Copy link

in Android->MainApplication.java add these 2 if you are using both after linking..
check if not present, add both:

new RNFSPackage(), new RNFetchBlobPackage()

cguino pushed a commit to BeApp/rn-fetch-blob that referenced this issue Jul 5, 2023
* Additional parameter for androiddownloads to enforce the downloaded file being added to the downloads collection

resolves joltup#247
resolves joltup#248
resolves joltup#245
resolves joltup#244
resolves joltup#236

Merge branch 'develop'
cguino pushed a commit to BeApp/rn-fetch-blob that referenced this issue Jul 5, 2023
* Additional parameter for androiddownloads to enforce the downloaded file being added to the downloads collection

resolves joltup#247
resolves joltup#248
resolves joltup#245
resolves joltup#244
resolves joltup#236

Merge branch 'develop'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests