add autoStyle to thumbnail container

This commit is contained in:
Akinwale Ariwodola 2020-01-08 06:35:37 +01:00
parent c88d9f71f8
commit d87c2a2218
2 changed files with 2 additions and 2 deletions

View file

@ -169,7 +169,7 @@ class FileListItem extends React.PureComponent {
{isChannel && ( {isChannel && (
<View style={fileListStyle.thumbnail}> <View style={fileListStyle.thumbnail}>
<View style={fileListStyle.channelThumbnailContainer}> <View style={[fileListStyle.channelThumbnailContainer, this.state.autoStyle]}>
{hasThumbnail && ( {hasThumbnail && (
<Image style={fileListStyle.channelThumbnail} resizeMode={'cover'} source={{ uri: thumbnail }} /> <Image style={fileListStyle.channelThumbnail} resizeMode={'cover'} source={{ uri: thumbnail }} />
)} )}

View file

@ -98,7 +98,7 @@ class FileResultItem extends React.PureComponent {
{isChannel && ( {isChannel && (
<View style={fileListStyle.thumbnail}> <View style={fileListStyle.thumbnail}>
<View style={fileListStyle.channelThumbnailContainer}> <View style={[fileListStyle.channelThumbnailContainer, this.state.autoStyle]}>
{hasThumbnail && ( {hasThumbnail && (
<FastImage <FastImage
style={fileListStyle.channelThumbnail} style={fileListStyle.channelThumbnail}