Using Core Node JS Modules in React Native Appsby@suprith461
648 reads

Using Core Node JS Modules in React Native Apps

tldt arrow
Read on Terminal Reader
Read this story w/o Javascript

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

@suprith461

Suprith Hattikal


Receive Stories from @suprith461

react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa