node-libs-react-native
Advanced tools
Comparing version 1.0.3 to 1.1.0
@@ -11,1 +11,5 @@ global.Buffer = require('buffer').Buffer; | ||
global.navigator.userAgent = 'React Native'; | ||
const { encode, decode } = require("base-64"); | ||
global.atob = decode; | ||
global.btoa = encode; |
{ | ||
"name": "node-libs-react-native", | ||
"version": "1.0.3", | ||
"version": "1.1.0", | ||
"author": "Tobias Koppers @sokra", | ||
@@ -12,2 +12,3 @@ "description": "Node core modules for React Native", | ||
"assert": "^1.4.1", | ||
"base-64": "^0.1.0", | ||
"browserify-zlib": "^0.2.0", | ||
@@ -14,0 +15,0 @@ "buffer": "^5.0.6", |
@@ -17,12 +17,14 @@ # node-libs-react-native | ||
These modules can be used with React Native Packager's `rn-cli.config.js` or Webpack's `resolve.alias`. | ||
These modules can be used with React Native Packager's `metro.config.js` or Webpack's `resolve.alias`. | ||
### Usage with React Native Packager | ||
Add a `rn-cli.config.js` file in the root directory of your React Native project and set `extraNodeModules`: | ||
Add a `metro.config.js` file in the root directory of your React Native project and set `resolver.extraNodeModules`: | ||
```js | ||
// rn-cli.config.js | ||
// metro.config.js | ||
module.exports = { | ||
extraNodeModules: require('node-libs-react-native'), | ||
resolver: { | ||
extraNodeModules: require('node-libs-react-native'), | ||
}, | ||
}; | ||
@@ -29,0 +31,0 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12313
125
130
23
+ Addedbase-64@^0.1.0
+ Addedbase-64@0.1.0(transitive)