title: Mutating an array present in one .js file from another .js file in react-native
body: <p>I stored an array in a .js file as i was going to use it in number of other files. Though i got it correctly in other files (checked by rendering the items of the array) but i am not able to mutate the array as i need to add and remove items from the array.</p>
  <p>Here is the file where my array is present;</p>
  <pre><code>export default myArray = ['first thing', 'second thing', 'and so on'];
  </code></pre>
  <p>And this is what i tried;</p>
  <p>First i imported it;</p>
  <pre><code>import myArray from 'path/of/the/file.js'
  </code></pre>
  <p>Then tried to mutate it;</p>
  <pre><code>myArray = [...myArray , andSomeOtherItem];
  </code></pre>
  <p>This shows an error;</p>
  <pre><code>myArray is read-only
  </code></pre>
  <p>After searching about it, i think that this is a default behavior of react-native. If i am right, then how can i achieve that?</p>