From b8c82c7d5ea7c4abe0b74f8976eb31e5999fc710 Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Sun, 23 Sep 2018 23:00:41 +0200 Subject: [PATCH] Allow overwriting imageContainer styles. Closes #286 --- src/__snapshots__/index.test.js.snap | 12 ++++++------ src/index.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/__snapshots__/index.test.js.snap b/src/__snapshots__/index.test.js.snap index 5afdebe..9f3bbb7 100644 --- a/src/__snapshots__/index.test.js.snap +++ b/src/__snapshots__/index.test.js.snap @@ -5,11 +5,11 @@ exports[`FastImage renders correctly. 1`] = ` style={ Array [ Object { - "height": 44, - "width": 44, + "overflow": "hidden", }, Object { - "overflow": "hidden", + "height": 44, + "width": 44, }, ] } @@ -43,11 +43,11 @@ exports[`Renders a normal Image when not passed a uri. 1`] = ` style={ Array [ Object { - "height": 44, - "width": 44, + "overflow": "hidden", }, Object { - "overflow": "hidden", + "height": 44, + "width": 44, }, ] } diff --git a/src/index.js b/src/index.js index a8cb00c..f45498b 100644 --- a/src/index.js +++ b/src/index.js @@ -39,7 +39,7 @@ class FastImage extends Component { if (fallback) { return ( +