Skip to content

Remove node-libs-react-native and randombytes polyfills#442

Merged
jamespepper81 merged 1 commit into
mainfrom
dev
Jan 9, 2026
Merged

Remove node-libs-react-native and randombytes polyfills#442
jamespepper81 merged 1 commit into
mainfrom
dev

Conversation

@jamespepper81
Copy link
Copy Markdown
Contributor

Removed the 'node-libs-react-native' and 'react-native-randombytes' dependencies and their related polyfills. Updated Metro config to use '@craftzdog/react-native-buffer' and 'stream-browserify' for buffer and stream polyfills. This streamlines Node.js module polyfilling for React Native and removes unused or redundant dependencies.

This pull request updates the React Native project's configuration to improve compatibility with Node.js modules and streamlines dependencies. The key changes include adding explicit polyfills for certain Node.js modules and removing unused or redundant dependencies.

Metro bundler configuration improvements:

  • Added explicit polyfills for the buffer and stream Node.js modules in the metro.config.js file, using @craftzdog/react-native-buffer and stream-browserify respectively, to ensure better compatibility when running Node.js code in React Native.

Dependency cleanup:

  • Removed the node-libs-react-native and react-native-bip32-utils packages from package.json to reduce unnecessary dependencies and potential conflicts, likely because their functionality is now covered by the new explicit polyfills or is no longer needed.

Removed the 'node-libs-react-native' and 'react-native-randombytes' dependencies and their related polyfills. Updated Metro config to use '@craftzdog/react-native-buffer' and 'stream-browserify' for buffer and stream polyfills. This streamlines Node.js module polyfilling for React Native and removes unused or redundant dependencies.
@jamespepper81 jamespepper81 merged commit 8bbff8d into main Jan 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant