I want to download one CSV
file in my React Native Project. I have put CSV
file in assets folder in React Native Project
, I'm using RNFS
for fetching the same.
But when I console log
RNFS.MainBundlePath
it returns undefined value
. Below is my Code to get the path from RNFS
.
var mainBundlePath = RNFS.MainBundlePath;
var path = '/assets/Product.csv';
Any suggestions on this matter?