feat: use quick crypto

This commit is contained in:
Adrian Castro
2024-02-10 11:21:14 +01:00
parent 1a44c10c0d
commit a270c94e03
3 changed files with 395 additions and 8 deletions

View File

@@ -6,6 +6,18 @@ module.exports = function (api) {
["babel-preset-expo", { jsxImportSource: "nativewind" }],
"nativewind/babel",
],
plugins: ["react-native-reanimated/plugin"],
plugins: [
"react-native-reanimated/plugin",
[
"module-resolver",
{
alias: {
crypto: "react-native-quick-crypto",
stream: "stream-browserify",
buffer: "@craftzdog/react-native-buffer",
},
},
],
],
};
};

View File

@@ -39,6 +39,8 @@
"react-native": "0.73.2",
"react-native-css-interop": "~0.0.22",
"react-native-gesture-handler": "~2.14.1",
"react-native-quick-base64": "^2.0.8",
"react-native-quick-crypto": "^0.6.1",
"react-native-reanimated": "~3.6.2",
"react-native-safe-area-context": "~4.8.2",
"react-native-screens": "~3.29.0",
@@ -56,6 +58,7 @@
"@movie-web/tsconfig": "workspace:^0.1.0",
"@types/babel__core": "^7.20.5",
"@types/react": "^18.2.48",
"babel-plugin-module-resolver": "^5.0.0",
"eslint": "^8.56.0",
"prettier": "^3.1.1",
"tailwindcss": "^3.4.0",