Skip to content

Commit fdab1c1

Browse files
committed
refactor: attempt to resolve example ci failure
1 parent 784fdd0 commit fdab1c1

File tree

3 files changed

+305
-5
lines changed

3 files changed

+305
-5
lines changed

example/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"test": "jest"
1313
},
1414
"dependencies": {
15+
"crypto-browserify": "^3.12.0",
1516
"expo": "^50.0.19",
1617
"expo-splash-screen": "~0.26.5",
1718
"expo-status-bar": "~1.11.1",

example/webpack.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,11 @@ module.exports = async function (env, argv) {
2121
'react-native-web': path.join(node_modules, 'react-native-web'),
2222
})
2323

24+
// Add fallback for crypto module
25+
config.resolve.fallback = {
26+
...config.resolve.fallback,
27+
crypto: require.resolve('crypto-browserify'),
28+
}
29+
2430
return config
2531
}

0 commit comments

Comments
 (0)