1

i have some file like this:

enter image description here

Then I am using this code to access that file:

let path = Platform.OS === 'ios' ? `${fs.dirs.MainBundleDir}/${filename}`
                : fs.asset(`html/${dx.material.blue.light.css}`)
fs.stat(path).then( stats => { ....})

In IOS it work normally, but in Android i got this error:

error [Error: failed to stat path bundle-assets://html/dx.material.blue.light.css because it does not exist or it is not a folder]

Can someone help

famfamfam
  • 396
  • 3
  • 8
  • 31

0 Answers0