Fix Android image preview (#2323)

This commit is contained in:
Elias Nahum 2018-11-09 18:20:08 -03:00 committed by Harrison Healey
parent 5c24375dae
commit 201e122827

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({