From 1c391f9c898c207f90ef124f04fe5f7da44293c3 Mon Sep 17 00:00:00 2001 From: G Date: Fri, 17 May 2024 15:10:01 +0000 Subject: [PATCH] add styles for images modes. background, contain, cover --- src/styles/Commons.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/styles/Commons.tsx b/src/styles/Commons.tsx index 3283300..48013a9 100644 --- a/src/styles/Commons.tsx +++ b/src/styles/Commons.tsx @@ -20,7 +20,20 @@ export const containers = StyleSheet.create({ export const images = StyleSheet.create({ cover: { + flex: 1, + width: "100%", + height: "100%", + resizeMode: "cover", + }, + background: { + flex: 1, + resizeMode: "cover", + justifyContent: "center", + }, + contain: { + flex: 1, width: "100%", height: "100%", + resizeMode: "contain", }, }); -- libgit2 0.27.1