MM-30850 fix(android): Failure to share self-uploaded file (#5010)

This commit is contained in:
Elias Nahum 2020-12-10 02:14:13 -03:00 committed by GitHub
parent c3b3d0239f
commit b27076b06f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,8 +75,7 @@ const PrepareFile = forwardRef<PrepareFileRef, PrepareFileProps>(({intl, isLands
let path;
try {
const prefix = Platform.OS === 'android' ? 'file:/' : '';
const exist = await RNFetchBlob.fs.exists(`${prefix}${localPath}`);
const exist = await RNFetchBlob.fs.exists(localPath);
if (exist) {
path = localPath;
} else {