Skip to content

Commit 9cb0f14

Browse files
authored
Merge pull request #77 from flatfox-ag/0.10.9
No depracation warning on instantiating dirs
2 parents 20d1be4 + c7374e7 commit 9cb0f14

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

fs.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,8 @@ const dirs = {
2020
MovieDir : RNFetchBlob.MovieDir,
2121
DownloadDir : RNFetchBlob.DownloadDir,
2222
DCIMDir : RNFetchBlob.DCIMDir,
23-
get SDCardDir() {
24-
console.warn('SDCardDir as a constant is deprecated and will be removed in feature release. ' +
25-
'Use RNFetchBlob.android.getSDCardDir():Promise instead.');
26-
return RNFetchBlob.SDCardDir;
27-
},
28-
get SDCardApplicationDir() {
29-
console.warn('SDCardApplicationDir as a constant is deprecated and will be removed in feature release. ' +
30-
'Use RNFetchBlob.android.getSDCardApplicationDir():Promise instead. ' +
31-
'This variable can be empty on error in native code.');
32-
return RNFetchBlob.SDCardApplicationDir;
33-
},
23+
SDCardDir: RNFetchBlob.SDCardDir, // Depracated
24+
SDCardApplicationDir: RNFetchBlob.SDCardApplicationDir, // Deprecated
3425
MainBundleDir : RNFetchBlob.MainBundleDir,
3526
LibraryDir : RNFetchBlob.LibraryDir
3627
}

0 commit comments

Comments
 (0)