RN-196 Added a key to try to force ProfilePicture to rerender (#636)

This commit is contained in:
Harrison Healey 2017-06-16 09:39:14 -04:00 committed by enahum
parent 956e203be8
commit d2b2503c04

View file

@ -85,6 +85,7 @@ export default class ProfilePicture extends PureComponent {
return (
<View style={{width: this.props.size + STATUS_BUFFER, height: this.props.size + STATUS_BUFFER}}>
<Image
key={pictureUrl}
style={{width: this.props.size, height: this.props.size, borderRadius: this.props.size / 2}}
source={{uri: pictureUrl}}
defaultSource={placeholder}