So question is pretty straight forward. I have an url of a zip file. I need to download it and extract the csv file from it. Values in csv will be saved to an array.
I found this stackoverflow threat but it uses adm-zip, which works with fs package of node, not supported in react-native. Obviously, this solution gave me an error of unknown package "fs". But, i tried to implent the idea of buffering.
So, i used this snippet:
fetch(URL)
.then((response) => response.arrayBuffer())
.then((responseBuffer) => {
//What to do here?
})
responseBuffer returns an object with bytes size of couple of kbytes. Any help will be appreciated.