react-native-receive-sharing-intent icon indicating copy to clipboard operation
react-native-receive-sharing-intent copied to clipboard

replace space with %20

Open amirito opened this issue 4 years ago • 1 comments

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?

amirito avatar Sep 18 '21 08:09 amirito

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

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

zgordon02 avatar Apr 25 '22 20:04 zgordon02