Skip to content

Commit

Permalink
fix: add back buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Dec 20, 2024
1 parent 4950458 commit 1f09b01
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@

global.Buffer = require('buffer').Buffer;
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,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
Expand Up @@ -17,7 +17,7 @@ config.resolver.extraNodeModules = {
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("empty-module"),
buffer: require.resolve("@craftzdog/react-native-buffer"),
};

// config.resolveRequest = (context, moduleName, platform) => {
Expand Down

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 @@ -32,6 +32,7 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"esbuild-plugins-node-modules-polyfill": "^1.6.8",
"@craftzdog/react-native-buffer": "^6.0.5",
"@types/react": "^18.3.9",
"@types/react-native": "^0.72.8",
"empty-module": "^0.0.2",
Expand Down

0 comments on commit 1f09b01

Please sign in to comment.