/react-native-os-shim

Shim the Node.js process for React Native's JS runtime

Primary LanguageJavaScriptMIT LicenseMIT

react-native-process-shim

yarn add react-native-process-shim

usage

Set it as a replacement module in your React Native project's package.json:

 {
   "react-native": {
+    "process": "react-native-process-shim"
   }
 }

Import it in your project's index.js:

require('process');

Nothing else needs to be done, it just mutated the global process variable.