[FIX] Flashing avatars on Android after #512 (#519)

This commit is contained in:
Diego Mello 2018-10-31 15:41:19 -03:00 committed by GitHub
parent afb2e6fd92
commit e7277be004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View File

@ -33,7 +33,6 @@ exports[`Storyshots Avatar avatar 1`] = `
resizeMode="cover" resizeMode="cover"
source={ source={
Object { Object {
"cache": "web",
"priority": "high", "priority": "high",
"uri": "baseUrl/avatar/test?format=png&size=50", "uri": "baseUrl/avatar/test?format=png&size=50",
} }
@ -80,7 +79,6 @@ exports[`Storyshots Avatar avatar 1`] = `
resizeMode="cover" resizeMode="cover"
source={ source={
Object { Object {
"cache": "web",
"priority": "high", "priority": "high",
"uri": "baseUrl/avatar/aa?format=png&size=50", "uri": "baseUrl/avatar/aa?format=png&size=50",
} }
@ -127,7 +125,6 @@ exports[`Storyshots Avatar avatar 1`] = `
resizeMode="cover" resizeMode="cover"
source={ source={
Object { Object {
"cache": "web",
"priority": "high", "priority": "high",
"uri": "baseUrl/avatar/bb?format=png&size=50", "uri": "baseUrl/avatar/bb?format=png&size=50",
} }
@ -174,7 +171,6 @@ exports[`Storyshots Avatar avatar 1`] = `
resizeMode="cover" resizeMode="cover"
source={ source={
Object { Object {
"cache": "web",
"priority": "high", "priority": "high",
"uri": "baseUrl/avatar/test?format=png&size=50", "uri": "baseUrl/avatar/test?format=png&size=50",
} }

View File

@ -40,8 +40,7 @@ export default class Avatar extends React.PureComponent {
style={avatarStyle} style={avatarStyle}
source={{ source={{
uri, uri,
priority: FastImage.priority.high, priority: FastImage.priority.high
cache: 'web'
}} }}
/> />
); );