title: React Native write into file
body: <p>I have following react native app structure (simpilifed)</p>
  
  <pre><code>- /MyApp
    - /ios
    - data.json
    - index.ios.js
  </code></pre>
  
  <p>So, i need to access and write into data.json file. To access them, i can  <code>import Data from './data.json'</code>.</p>
  
  <p>But how can i write into this file? I seen react-native-fs (<a href="https://github.com/johanneslumpe/react-native-fs" rel="nofollow">https://github.com/johanneslumpe/react-native-fs</a>), but i can not access the file in my <code>MyApp</code> directory.</p>
  
  <p>How do i store files like my <code>data.json</code>, so i can write and access them on my iphone?</p>
  
  <p>My <code>data.json</code> file contains a bigger list of vocabulary, like</p>
  
  <pre><code>{
    "words": [
      {"word": "xxx", "done": false} // and more...
    ]
  }
  </code></pre>