Skip to content

Commit 662a388

Browse files
authored
Add legacy constants to the spec
1 parent 2e14e6b commit 662a388

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

codegenSpecs/NativeBlobUtils.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ export interface Spec extends TurboModule {
1818
SDCardDir: string,
1919
SDCardApplicationDir: string,
2020
DCIMDir: string,
21+
// Android Only Legacy Constants
22+
LegacyDCIMDir: string,
23+
LegacyPictureDir: string,
24+
LegacyMusicDir: string,
25+
LegacyDownloadDir: string,
26+
LegacyMovieDir: string,
27+
LegacyRingtoneDir: string,
28+
LegacySDCardDir: string,
2129
|};
2230

2331
+fetchBlobForm: (options: Object, taskId: string, method: string, url: string, headers: Object, form: Array<any>, callback: (value: Array<any>) => void) => void;

ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ - (NSDictionary *)constantsToExport
9595
@"SDCardDir": @"",
9696
@"SDCardApplicationDir": @"",
9797
@"DCIMDir": @"",
98+
// Android only legacy constants
99+
@"LegacyDCIMDir": @"",
100+
@"LegacyPictureDir": @"",
101+
@"LegacyMusicDir": @"",
102+
@"LegacyDownloadDir": @"",
103+
@"LegacyMovieDir": @"",
104+
@"LegacyRingtoneDir": @"",
105+
@"LegacySDCardDir": @"",
98106
};
99107
}
100108

0 commit comments

Comments
 (0)