1 | import { NativeModulesProxy } from '@unimodules/core';
|
2 |
|
3 | import ExponentFileSystemShim from './ExponentFileSystemShim';
|
4 | import { ExponentFileSystemModule } from './FileSystem.types';
|
5 |
|
6 | let platformModule;
|
7 |
|
8 | if (NativeModulesProxy.ExponentFileSystem) {
|
9 | platformModule = NativeModulesProxy.ExponentFileSystem;
|
10 | } else {
|
11 | platformModule = ExponentFileSystemShim;
|
12 | }
|
13 |
|
14 | export default platformModule as ExponentFileSystemModule;
|