title: Cannot read property 'DocumentDir' of undefined React-Native Firebase React-native-fetch-blob
body: <p>I have exhausted all threads on the internet and can't find a solution. 
  I'm trying to photo upload to firebase from my react-native app using react-native-fetch-blob. 
  RN ios simulator running iphone 6. 
  Not using Expo
  I have NOT tried running on android emulator yet, due to android env setup on different computer. </p>
  
  <p>This line causes the error.</p>
  
  <pre><code>import RNFetchBlob from 'react-native-fetch-blob'
  </code></pre>
  
  <p>I have read many of the tutorials about using react-native-fetch-blob. </p>
  
  <p>I can't seem to link it correctly, or please tell me what my issue is. </p>
  
  <pre><code>"react": "16.0.0-beta.5",
  "react-native": "0.49.3",
  "react-native-fetch-blob": "^0.10.8",
  </code></pre>
  
  <p>What I've tried already...</p>
  
  <pre><code>npm install --save react-native-fetch-blob
  react-native link 
  </code></pre>
  
  <p>...</p>
  
  <pre><code>npm install --save react-native-fetch-blob
  react-native link react-native-fetch-blob
  </code></pre>
  
  <p>...</p>
  
  <pre><code>rm -rf node_modules, then reinstall, then clean and build
  </code></pre>
  
  <p>...
  I've followed the WIKI to manually link packages. Verified packages are linked via SS's
  ...</p>
  
  <p>Clean and build after all of these scenario's.</p>
  
  <p>I won't list EVERYTHING I've done because I've literally tried everything on stack and RNFB Issues/github. </p>
  
  <p>Here are some screenshots from Xcode, RNFB is getting linked correctly, or at least I think.</p>
  
  <p><a href="https://i.stack.imgur.com/n9xYz.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n9xYz.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/TGcmt.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TGcmt.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9M7pj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9M7pj.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/BI3RV.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BI3RV.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/xIwQg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xIwQg.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/FdiGD.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FdiGD.jpg" alt="enter image description here"></a></p>
  
  <p>I have found this <a href="https://github.com/benjreinhart/react-native-aws3" rel="nofollow noreferrer">https://github.com/benjreinhart/react-native-aws3</a></p>
  
  <p>And will attempt a workout through AWS until someone can help with the linking of fetch blob. Ill update after I have time to work. </p>