ajith-ab / react-native-receive-sharing-intent

A React Native plugin that enables React Native apps to receive sharing photos, videos, text, urls or any other file types from another app
MIT License
297 stars 108 forks source link

replace space with %20 #97

Open amirito opened 2 years ago

amirito commented 2 years ago

in getReceivedFiles replaces spaces in file name with %20 and it causes problems in iOS I can replace it again but it is not the best way. is there any other way to solve this issue?

zgordon02 commented 2 years ago

The strings are all URI encoded. Simply decode them like this:

      const filePath = decodeURI(file.filePath);
      const fileName = decodeURI(file.fileName);