title: How to create and save CSV files in React Native?
body: <p>My React Native app (on android only) is a basic app that will collect some sensors data when users start recording video. I have three arrays of sensors data: accelerometer, gyroscope, and light. I want to save them to the device as <code>.csv</code> files so I can use them for the next steps. Currently, I can save them in <code>.txt</code> (using react-native-fs, but they do not support <code>.csv</code> extension) but what I want is <code>.csv</code>. Is there any way to do that in React Native?</p>
  
  <p>Data will look like this:</p>
  
  <pre><code>this.accelerometer = [
    {x: 12, y: 15, z: 17},
    {x: 12, y: 15, z: 17},
    ...
    {x: 12, y: 15, z: 17},
  ]
  
  this.gyroscope = [
    {x: 12, y: 15, z: 17},
    {x: 12, y: 15, z: 17},
    ...
    {x: 12, y: 15, z: 17},
  ]
  
  this.light = [6, 7, 8, 9, 10,.., 11]
  </code></pre>
  
  <p>Desired <code>.csv</code>, for example <code>accelerometer.csv</code>:</p>
  
  <pre><code>x ,y ,z
  12,15,17
  </code></pre>