Skip to content

Commit

Permalink
Apply BackgroundImage fix for FeaturedTile
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier-villelegier committed Nov 23, 2017
1 parent f973972 commit e113408
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/tile/FeaturedTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import {
TouchableOpacity,
Text as NativeText,
View,
Image,
StyleSheet,
Dimensions,
} from 'react-native';
import Text from '../text/Text';
import Icon from '../icons/Icon';
import ViewPropTypes from '../config/ViewPropTypes';
import BackgroundImage from '../config/BackgroundImage';

const FeaturedTile = props => {
const {
Expand Down Expand Up @@ -83,7 +83,7 @@ const FeaturedTile = props => {
{...attributes}
style={[styles.container, containerStyle && containerStyle]}
>
<Image
<BackgroundImage
source={imageSrc}
style={[
styles.imageContainer,
Expand Down Expand Up @@ -111,7 +111,7 @@ const FeaturedTile = props => {
{caption}
</Text>
</View>
</Image>
</BackgroundImage>
</TouchableOpacity>
);
};
Expand All @@ -120,7 +120,7 @@ FeaturedTile.propTypes = {
title: PropTypes.string,
icon: PropTypes.object,
caption: PropTypes.string,
imageSrc: Image.propTypes.source.isRequired,
imageSrc: BackgroundImage.propTypes.source.isRequired,
onPress: PropTypes.func,
containerStyle: ViewPropTypes.style,
iconContainerStyle: ViewPropTypes.style,
Expand Down

0 comments on commit e113408

Please sign in to comment.