Merge branch 'master' of github.com:DylanVann/react-native-fast-image

This commit is contained in:
Dylan Vann 2018-04-19 01:44:17 -04:00
commit 0aac5fa711
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import {
Platform,
View,
Image,
NativeModules,
@ -33,7 +34,7 @@ class FastImage extends Component {
} = this.props
// If there's no source or source uri just fallback to Image.
if (!source || !source.uri) {
if (!source || !source.uri || (Platform.OS === 'android' && source.uri.startsWith('file://'))) {
return (
<Image
ref={e => (this._root = e)}