1 | import * as FileSystem from './FileSystem';
|
2 | export * from './FileSystem';
|
3 |
|
4 | declare var module: any;
|
5 |
|
6 | if (module && module.exports) {
|
7 | let wasImportWarningShown = false;
|
8 |
|
9 | Object.defineProperty(module.exports, 'FileSystem', {
|
10 | get() {
|
11 | if (!wasImportWarningShown) {
|
12 | console.warn(
|
13 | `The syntax "import { FileSystem } from 'expo-file-system'" is deprecated. Use "import * as FileSystem from 'expo-file-system'" or import named exports instead. Support for the old syntax will be removed in SDK 34.`
|
14 | );
|
15 | wasImportWarningShown = true;
|
16 | }
|
17 | return FileSystem;
|
18 | },
|
19 | });
|
20 | }
|