react-native-quick-crypto
Version:
A fast implementation of Node's `crypto` module written in C/C++ JSI
21 lines (19 loc) • 712 B
JavaScript
;
import { createRunOncePlugin } from 'expo/config-plugins';
import { withSodiumIos } from './withSodiumIos';
import { withSodiumAndroid } from './withSodiumAndroid';
import { withXCode } from './withXCode';
const withRNQCInternal = (config, props = {}) => {
// add XCode workarounds for some 16.x releases that are not RN-friendly
config = withXCode(config, props);
// enable libsodium algorithms
if (props.sodiumEnabled) {
config = withSodiumIos(config, props);
config = withSodiumAndroid(config, props);
}
return config;
};
export function createRNQCPlugin(name, version) {
return createRunOncePlugin(withRNQCInternal, name, version);
}
//# sourceMappingURL=withRNQC.js.map