I have local files in my app which I read like this:
How to read this file using R
R
Just using filename = response.uri.replace('file:', '')
The final code:
if (Platform.OS === 'ios') { filename = response.uri.replace('file:', '') } else { filename = response.uri }
Working now ...