diff --git a/modules/react-native-chat/utils.js b/modules/react-native-chat/utils.js index d7e7d78ea..785363846 100644 --- a/modules/react-native-chat/utils.js +++ b/modules/react-native-chat/utils.js @@ -76,7 +76,7 @@ export function getByValue(arr, value) { } export const getUrl = async (uri, fileName) => { - const destPath = `${RNFS.TemporaryDirectoryPath}/${fileName}`; + const destPath = `${RNFS.DocumentDirectoryPath}/${fileName}`; await RNFS.copyFile(uri, destPath); await RNFS.stat(destPath); return destPath;