Fix Android image preview (#2323)
This commit is contained in:
parent
5c24375dae
commit
201e122827
1 changed files with 3 additions and 1 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in a new issue