UNPKG

react-native-quick-crypto

Version:

A fast implementation of Node's `crypto` module written in C/C++ JSI

25 lines (23 loc) 889 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createRNQCPlugin = createRNQCPlugin; var _configPlugins = require("expo/config-plugins"); var _withSodiumIos = require("./withSodiumIos"); var _withSodiumAndroid = require("./withSodiumAndroid"); var _withXCode = require("./withXCode"); const withRNQCInternal = (config, props = {}) => { // add XCode workarounds for some 16.x releases that are not RN-friendly config = (0, _withXCode.withXCode)(config, props); // enable libsodium algorithms if (props.sodiumEnabled) { config = (0, _withSodiumIos.withSodiumIos)(config, props); config = (0, _withSodiumAndroid.withSodiumAndroid)(config, props); } return config; }; function createRNQCPlugin(name, version) { return (0, _configPlugins.createRunOncePlugin)(withRNQCInternal, name, version); } //# sourceMappingURL=withRNQC.js.map