React Native: Unable to resolve module fs
<pre><code>Unable to resolve module fs from /...mypath
</code></pre>

<p>I got this error when trying to import a node module into my react-native app. </p>

<p>The module used 'fs' in this way:</p>

<pre><code>var fs = require('fs');
var list = JSON.parse(fs.readFileSync(__dirname + '/list.json', 'utf8'));
</code></pre>