paint-brush
Using Core Node JS Modules in React Native Appsby@suprith461
1,086 reads
1,086 reads

Using Core Node JS Modules in React Native Apps

by Suprith Hattikal3mJune 25th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

The React Native packager can’t package crypto module into React Native. This makes core modules like the crypto, stream, etc, and the thousands of npm modules that depend on them unusable from React Native. Fortunately, there’s a solution to this problem, but it takes some work. Using core Node JS modules like crypto in the browser using polyfills allows you to use core Node. JS modules in React Native is given special treatment and you can redefine it to mean something else.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail

Coin Mentioned

Mention Thumbnail
featured image - Using Core Node JS Modules in React Native Apps
Suprith Hattikal HackerNoon profile picture
Suprith Hattikal

Suprith Hattikal

@suprith461

React-Native ensthusiast

About @suprith461
LEARN MORE ABOUT @SUPRITH461'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Suprith Hattikal HackerNoon profile picture
Suprith Hattikal@suprith461
React-Native ensthusiast

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite