Skip to content

Commit

Permalink
fix: enable build and sign
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow authored and yashovardhan committed Oct 7, 2024
1 parent d2b6741 commit 0332c80
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1539,7 +1539,7 @@ SPEC CHECKSUMS:
ReactCommon: f7da14a8827b72704169a48c929bcde802698361
SimpleKeychain: f8707c8e97b38c6a6e687b17732afc9bcef06439
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
Yoga: 2246eea72aaf1b816a68a35e6e4b74563653ae09
Yoga: 950bbfd7e6f04790fdb51149ed51df41f329fcc8

PODFILE CHECKSUM: 1aa16d00e266ed46c845784a38e2efdd1b7a55b9

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
require('ts-node/register');
module.exports = require('./metro.config.ts');
require("ts-node/register");
// Learn more https://docs.expo.io/guides/customizing-metro
const { getDefaultConfig } = require("expo/metro-config");

/** @type {import('expo/metro-config').MetroConfig} */
const config = getDefaultConfig(__dirname);

config.transformer.babelTransformerPath = require.resolve("react-native-react-bridge/lib/plugin");
config.resolver.extraNodeModules = {
...config.resolver.extraNodeModules,

assert: require.resolve("empty-module"), // assert can be polyfilled here if needed
http: require.resolve("empty-module"), // stream-http can be polyfilled here if needed
https: require.resolve("empty-module"), // https-browserify can be polyfilled here if needed
os: require.resolve("empty-module"), // os-browserify can be polyfilled here if needed
url: require.resolve("empty-module"), // url can be polyfilled here if needed
zlib: require.resolve("empty-module"), // browserify-zlib can be polyfilled here if needed
path: require.resolve("empty-module"),
crypto: require.resolve("empty-module"),
buffer: require.resolve("@craftzdog/react-native-buffer"),
};

// config.resolveRequest = (context, moduleName, platform) => {
// if (moduleName === "crypto") {
// // when importing crypto, resolve to react-native-quick-crypto
// return context.resolveRequest(context, "react-native-quick-crypto", platform);
// }
// // otherwise chain to the standard Metro resolver.
// return context.resolveRequest(context, moduleName, platform);
// }
module.exports = config;

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"react-native-auth0": "^3.2.1",
"react-native-quick-crypto": "^0.7.5",
"react-native-webview": "13.8.6",
"react-native-react-bridge": "^0.12.1"
"react-native-react-bridge": "^0.12.1",
"react-dom": "18.2.0"
},
"devDependencies": {
"@types/react-native": "^0.72.8",
Expand Down

0 comments on commit 0332c80

Please sign in to comment.