title: Including d3 in react-native projects causes UnableToResolveError: Unable to resolve module `child_process`
body: <p>I have a react-native project, in which I use ART + D3.
  Everything works fine when working with d3-shape &amp; d3-scale.
  (using, mostly d3-shape.area())
  now I want to use d3.line()</p>
  
  <p>But, when adding 
      import * as d3 from 'd3';</p>
  
  <p>I get the following error</p>
  
  <pre><code>Transforming modules  ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓░  99.6% (544/545)...(node:11758) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2320): UnableToResolveError: Unable to resolve module `child_process` from `/[myproject]/node_modules/xmlhttprequest/lib/XMLHttpRequest.js`: Module does not exist in the module map or in these directories:
    /[myproject]/node_modules
  </code></pre>
  
  <p>As far as I can tell, the issue lies in that you can't use node modules in react-native <a href="https://github.com/facebook/react-native/issues/7170" rel="nofollow noreferrer">https://github.com/facebook/react-native/issues/7170</a></p>
  
  <p>And, the dependency chain is
  d3 -> d3-request -> xmlHttpRequest -> child_process</p>
  
  <p>How can I remove the dependency or work around it?
  As far as I can tell, I do not need to use any functionality associated with xmlHttpRequest.</p>
  
  <p>Below is an excerpt from my package.json</p>
  
  <pre><code>"dependencies": {
    "art": "^0.10.1",
    "d3": "^4.10.2",
    "d3-scale": "^1.0.6",
    "d3-shape": "^1.2.0",
    "mobx": "^3.1.10",
    "mobx-persist": "^0.3.3",
    "mobx-react": "^4.1.8",
    "moment": "^2.18.1",
    "react": "~15.4.2",
    "react-addons-test-utils": "^15.6.0",
    "react-dom": "~15.4.1",
    "react-mixin": "^3.0.5",
    "react-native": "^0.42.3",
    "react-native-check-box": "ssh://git@github.com:jav/react-native-check-box",
    "react-native-datepicker": "^1.5.1",
    "react-native-menu": "^0.21.0",
    "react-native-radio-buttons": "^1.0.0",
    "react-navigation": "^1.0.0-beta.11",
    "react-timer-mixin": "^0.13.3",
    "url": "^0.11.0",
    "uuid": "^3.0.1"
  },
  </code></pre>