react-native-fast-tflite
Version:
High-performance TensorFlow Lite library for React Native
20 lines (18 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _configPlugins = require("@expo/config-plugins");
var _withCoreMLDelegate = require("./withCoreMLDelegate");
var _withAndroidGpuLibraries = require("./withAndroidGpuLibraries");
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-var-requires
const pkg = require('../../../package.json'); // from the lib directory, the package.json is three levels up
const withFastTFLite = (config, props) => {
if (props?.enableCoreMLDelegate) config = (0, _withCoreMLDelegate.withCoreMLDelegate)(config);
if (props?.enableAndroidGpuLibraries === true || Array.isArray(props?.enableAndroidGpuLibraries)) config = (0, _withAndroidGpuLibraries.withAndroidGpuLibraries)(config, props.enableAndroidGpuLibraries);
return config;
};
var _default = (0, _configPlugins.createRunOncePlugin)(withFastTFLite, pkg.name, pkg.version);
exports.default = _default;
//# sourceMappingURL=withFastTFLite.js.map