Android: Fix image not displaying in preview (#1281)
This commit is contained in:
parent
76169720a5
commit
ece329f540
1 changed files with 5 additions and 1 deletions
|
|
@ -255,6 +255,10 @@ export default class Previewer extends Component {
|
|||
};
|
||||
|
||||
const opacity = isInFetchCache ? 1 : this.state.opacity;
|
||||
const containerStyle = Platform.select({
|
||||
android: {height: imageHeight, width: this.state.imageWidth, backgroundColor: '#000'},
|
||||
ios: {flex: 1, backgroundColor: '#000'}
|
||||
});
|
||||
|
||||
return (
|
||||
<View
|
||||
|
|
@ -262,7 +266,7 @@ export default class Previewer extends Component {
|
|||
onResponderRelease={this.handleResponderRelease}
|
||||
style={[style.fileImageWrapper, {height: '100%', width: '100%'}]}
|
||||
>
|
||||
<AnimatedView style={{flex: 1, backgroundColor: '#000', opacity}}>
|
||||
<AnimatedView style={[containerStyle, {opacity}]}>
|
||||
<ImageView
|
||||
ref={this.attachImageView}
|
||||
source={source}
|
||||
|
|
|
|||
Loading…
Reference in a new issue