Pārlūkot izejas kodu

Merge branch '0.10.0' of github.com:wkh237/react-native-fetch-blob into 0.10.0

Ben Hsieh 8 gadus atpakaļ
vecāks
revīzija
ce46768c5c

+ 1
- 0
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java Parādīt failu

@@ -208,6 +208,7 @@ public class RNFetchBlobFS {
208 208
         res.put("DownloadDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS).getAbsolutePath());
209 209
         res.put("MovieDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_MOVIES).getAbsolutePath());
210 210
         res.put("RingtoneDir", Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_RINGTONES).getAbsolutePath());
211
+        res.put("SDCard", Environment.getExternalStorageDirectory().getAbsolutePath());
211 212
         return res;
212 213
     }
213 214
 

+ 2
- 1
src/fs.js Parādīt failu

@@ -28,7 +28,8 @@ const dirs = {
28 28
     MusicDir : RNFetchBlob.MusicDir,
29 29
     MovieDir : RNFetchBlob.MovieDir,
30 30
     DownloadDir : RNFetchBlob.DownloadDir,
31
-    DCIMDir : RNFetchBlob.DCIMDir
31
+    DCIMDir : RNFetchBlob.DCIMDir,
32
+    SDCardDir : RNFetchBlob.SDCardDir
32 33
 }
33 34
 
34 35
 /**