From e7277be00439439ae349a09b84f4051522401295 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 31 Oct 2018 15:41:19 -0300 Subject: [PATCH] [FIX] Flashing avatars on Android after #512 (#519) --- __tests__/__snapshots__/Storyshots.test.js.snap | 4 ---- app/containers/Avatar.js | 3 +-- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/__tests__/__snapshots__/Storyshots.test.js.snap b/__tests__/__snapshots__/Storyshots.test.js.snap index 54fbac5f..40c926b0 100644 --- a/__tests__/__snapshots__/Storyshots.test.js.snap +++ b/__tests__/__snapshots__/Storyshots.test.js.snap @@ -33,7 +33,6 @@ exports[`Storyshots Avatar avatar 1`] = ` resizeMode="cover" source={ Object { - "cache": "web", "priority": "high", "uri": "baseUrl/avatar/test?format=png&size=50", } @@ -80,7 +79,6 @@ exports[`Storyshots Avatar avatar 1`] = ` resizeMode="cover" source={ Object { - "cache": "web", "priority": "high", "uri": "baseUrl/avatar/aa?format=png&size=50", } @@ -127,7 +125,6 @@ exports[`Storyshots Avatar avatar 1`] = ` resizeMode="cover" source={ Object { - "cache": "web", "priority": "high", "uri": "baseUrl/avatar/bb?format=png&size=50", } @@ -174,7 +171,6 @@ exports[`Storyshots Avatar avatar 1`] = ` resizeMode="cover" source={ Object { - "cache": "web", "priority": "high", "uri": "baseUrl/avatar/test?format=png&size=50", } diff --git a/app/containers/Avatar.js b/app/containers/Avatar.js index 74b2d4c1..29381de5 100644 --- a/app/containers/Avatar.js +++ b/app/containers/Avatar.js @@ -40,8 +40,7 @@ export default class Avatar extends React.PureComponent { style={avatarStyle} source={{ uri, - priority: FastImage.priority.high, - cache: 'web' + priority: FastImage.priority.high }} /> );