I'm getting
Error: Synchronous http requests are not supported
However I am not doing any http requests. All I am doing is trying to parse a local csv file. Here is my script:
import RNFS from 'react-native-fs';
import Papa from 'papaparse';
const mainBundlePath = RNFS.MainBundlePath;
const path = '/app/src/main/assets/data.csv';
const test = () => {
Papa.parse(mainBundlePath + path, {
download: true,
delimiter: '\t',
complete: function(results) {
console.log("results: ", results);
}
}
);
};
export default test;