From 4f99835ad9917e38b336a0db04412834f2965ffe Mon Sep 17 00:00:00 2001 From: Guns Date: Tue, 20 Dec 2016 12:27:56 +0530 Subject: [PATCH] Fix View rendering error - flexBasis This fixes the error `View was rendered with explicitly set width/height but with a 0 flexBasis. (This might be fixed by changing flex: to flexGrow:)` --- src/FitImage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FitImage.js b/src/FitImage.js index a033a44..10c66b0 100644 --- a/src/FitImage.js +++ b/src/FitImage.js @@ -117,7 +117,7 @@ class FitImage extends Image { if (this.style && this.style.width) { return { width: this.style.width }; } - return { flex: 1 }; + return { flexGrow: 1 }; } resize(event) {