From 17466e36994de948726cd3add2d788edff9c5e2f Mon Sep 17 00:00:00 2001 From: Anderson Fernandes Date: Fri, 1 May 2020 21:05:32 -0300 Subject: [PATCH] fix:element-flatlist should avoid using flex: 1 on elements of a list. and avoid a bug that happens when you delete a product --- src/pages/Dashboard/styles.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/Dashboard/styles.ts b/src/pages/Dashboard/styles.ts index bbe1d27..ac30fb1 100644 --- a/src/pages/Dashboard/styles.ts +++ b/src/pages/Dashboard/styles.ts @@ -25,7 +25,8 @@ export const Product = styled.View` padding: 16px 16px; border-radius: 5px; margin: 8px; - flex: 1; + height: 241px; + width: auto; `; export const ProductImage = styled.Image`