Skip to content

Commit

Permalink
Android: Fix image not displaying in preview (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
enahum authored Dec 7, 2017
1 parent 7616972 commit ece329f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/screens/image_preview/previewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,14 +255,18 @@ 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
{...this.panResponder.panHandlers}
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}
Expand Down

0 comments on commit ece329f

Please sign in to comment.