react-native-fs-turbo
Version:
React-Native library for working with Android/iOS file system, written using JSI and C++ TurboModules
18 lines (17 loc) • 531 B
JavaScript
;
import { TurboModuleRegistry } from "react-native";
import { ModuleNotFoundError } from "./ModuleNotFoundError";
let module;
export function getRNFSTurboPlatformContextTurboModule() {
try {
if (module == null) {
// 1. Get the TurboModule
module = TurboModuleRegistry.getEnforcing("RNFSTurboPlatformContextModule");
}
return module;
} catch {
// TurboModule could not be found!
throw new ModuleNotFoundError();
}
}
//# sourceMappingURL=NativeRNFSTurboPlatformContextModule.js.map