title: Use polyfills of Node.js built-in modules in React-Native
body: <p>Some Node.js packages I'd like to use in a React-Native app have dependencies on Node.js' built-in modules like <code>url</code>, <code>http</code> and <code>crypto</code>. These packages are designed to be packaged with Webpack, and take advantage of <a href="https://github.com/webpack/node-libs-browser" rel="nofollow noreferrer">Webpack's polyfills</a>.</p>
  
  <p>I've added the required polyfills to my root <code>package.json</code> file but I'm still seeing errors like <code>Unable to resolve module 'crypto'</code> in my app.</p>
  
  <p>How do I tell the React-Native packager to use polyfills instead of trying to load the built-in Node.js modules?</p>