Skip to content

Commit ecbea01

Browse files
kdpadhiyarnuttalltravis
committed
Update README.md
Co-Authored-By: nuttall <[email protected]> Co-Authored-By: Travis Vachon <[email protected]>
1 parent 52d0045 commit ecbea01

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,9 +565,14 @@ RNFetchBlob.config({
565565
```
566566

567567
## React Native developers to access android device path for app bundle
568+
569+
```js
568570
NativeModules.RNFetchBlob.getAppDir((error, path) => {
571+
569572
//here path is your apps directory in mobile device
573+
570574
RNFetchBlob
575+
571576
.config({
572577
addAndroidDownloads : {
573578
useDownloadManager : true, // <-- this is the only thing required
@@ -585,7 +590,7 @@ RNFetchBlob.config({
585590
resp.path()
586591
})
587592
})
588-
593+
```
589594
In case error appears or app crash just go to
590595
AndroidMaifest.xml file and add
591596
<uses-permission android:name="android.permission.DOWNLOAD_WITHOUT_NOTIFICATION" />

0 commit comments

Comments
 (0)