From 00e04535f33f6165e50f43ad66b2e15fa7891a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E9=A2=86?= Date: Mon, 19 Mar 2018 18:18:56 +0800 Subject: [PATCH 1/2] fix cannot display local image on android --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index fb4629b..f74bb9d 100644 --- a/index.js +++ b/index.js @@ -33,7 +33,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 ( (this._root = e)} From 62fc722872c6cdd81e78ff33798f2b7f6071b5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B0=E9=A2=86?= Date: Mon, 19 Mar 2018 18:20:10 +0800 Subject: [PATCH 2/2] fixed cannot display local image on android --- index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/index.js b/index.js index f74bb9d..db61de3 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' import PropTypes from 'prop-types' import { + Platform, View, Image, NativeModules,