Skip to content

Commit 3e8b672

Browse files
flyingcircleJeremy Hamilton
andauthored
fix image source for local images (react-native-elements#2717)
Co-authored-by: Jeremy Hamilton <jeremy.hamilton@tekfive.com>
1 parent 257c5e5 commit 3e8b672

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/image/Image.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ class Image extends React.Component {
5050
...attributes
5151
} = this.props;
5252

53-
const hasImage =
54-
Boolean(attributes.source) && Boolean(attributes.source.uri);
53+
const hasImage = Boolean(attributes.source);
5554
const { width, height, ...styleProps } = StyleSheet.flatten(style);
5655

5756
return (

src/tile/__tests__/__snapshots__/Tile.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ exports[`Tile component should apply styles from theme 1`] = `
180180
updateTheme={[Function]}
181181
/>
182182
<View
183-
accessibilityElementsHidden={false}
184-
importantForAccessibility="yes"
185-
pointerEvents="auto"
183+
accessibilityElementsHidden={true}
184+
importantForAccessibility="no-hide-descendants"
185+
pointerEvents="none"
186186
style={
187187
Object {
188188
"bottom": 0,

0 commit comments

Comments
 (0)