Fix Android image preview (#2323)

This commit is contained in:
Elias Nahum 2018-11-09 18:20:08 -03:00
parent d19e269dec
commit 75ec18c0f4
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -5,6 +5,7 @@ import React, {Component} from 'react';
import PropTypes from 'prop-types';
import {
Keyboard,
Platform,
ScrollView,
StyleSheet,
TouchableOpacity,
@ -100,7 +101,8 @@ export default class FileAttachmentList extends Component {
}
if (cache) {
uri = cache.path;
const prefix = Platform.OS === 'android' ? 'file://' : '';
uri = `${prefix}${cache.path}`;
}
results.push({