Skip to content

Commit

Permalink
README: Fix: extraNodeModules -> resolver.extraNodeModules (#16)
Browse files Browse the repository at this point in the history
Fixes #14
  • Loading branch information
jdanbrown authored and parshap committed Oct 15, 2018
1 parent ea96020 commit 13cae5d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Expand Up @@ -18,12 +18,14 @@ These modules can be used with React Native Packager's `rn-cli.config.js` or Web

### 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 `rn-cli.config.js` file in the root directory of your React Native project and set `resolver.extraNodeModules`:

```js
// rn-cli.config.js
module.exports = {
extraNodeModules: require('node-libs-react-native'),
resolver: {
extraNodeModules: require('node-libs-react-native'),
},
};
```

Expand Down

0 comments on commit 13cae5d

Please sign in to comment.