Repository navigation
Do you need the Expo plugin for this library to work with Expo? #1061
|
Question is in the title but I tested it and it seems like you don't need the expo plugin in the app plugin's config but just wanted to double check? Also, the installation instructions are a bit confusing for Expo. Do you also need to install https://github.com/margelo/react-native-quick-crypto#installation |
Replies: 1 comment
|
Yeah, installing both was the right call. nitro-modules and quick-base64 are real peerDependencies (nitro >=0.31.2, quick-base64 >=3.0.0) with no optional flag, so the lib won't work without them. npm 7+ auto-pulls them on a fresh The expo plugin is the part you can skip for basic crypto. |
Yeah, installing both was the right call. nitro-modules and quick-base64 are real peerDependencies (nitro >=0.31.2, quick-base64 >=3.0.0) with no optional flag, so the lib won't work without them. npm 7+ auto-pulls them on a fresh
npm install, but that's not guaranteed: with--legacy-peer-depsnitro-modules didn't get installed for me, so listing all three explicitly like the RN snippet does is the safe move.The expo plugin is the part you can skip for basic crypto.
expoandexpo-build-propertiesare marked optional in peerDependenciesMeta, and the config plugin (app.plugin.js) only does two things: an Xcode 16.x build workaround, and enabling libsodium when you passsodiumEnabled. So yo…