Merge branch 'master' of github.com:DylanVann/react-native-fast-image
This commit is contained in:
commit
0aac5fa711
3
index.js
3
index.js
|
@ -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)}
|
||||
|
|
Loading…
Reference in New Issue