I'm using a PDF viewer on react-native, some files without : can be opened but other files with : won't open and will return No content provider.
Is there a way to read locally stored files with : on it's name on react-native?
For example, this kind of file path
const filenameWithSpace = 'file:///storage/emulated/0/somwhere/foo foo Nov 21, 2018 12:16:04 PM.pdf'
I already tried encodeURIComponent and encodeURI but it didn't work.
Update: The problem on the filename was actually the : character not the spaces.