Using PapaParse, I am trying to parse a CSV located locally on an iOS device. The sample code below is pretty straight forward except that it does not take a file path. I do have the path to the local file but I'm not sure how properly insert that in place of fileInput.files[0]
. I tried using File() to create a file from the path but could not get anywhere. How can I parse a local csv, in react native using PapaParse?
Papa.parse(fileInput.files[0], {
complete: function(results) {
console.log(results);
}
});