From 5e81f61993eea32784cd9b20fa6e73d1240d77e5 Mon Sep 17 00:00:00 2001 From: cixio <5869764+cixio@users.noreply.github.com> Date: Mon, 10 Jun 2024 17:00:13 +0200 Subject: [PATCH] add PixelRatio (#786) --- src/components/Cell.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Cell.tsx b/src/components/Cell.tsx index ed74a1b..c7454e1 100644 --- a/src/components/Cell.tsx +++ b/src/components/Cell.tsx @@ -1,5 +1,6 @@ import React, { useContext } from 'react'; import { + PixelRatio, Platform, SafeAreaView, StyleSheet, @@ -430,7 +431,7 @@ const styles = StyleSheet.create({ alignItems: 'center', paddingLeft: 15, paddingRight: 20, - minHeight: 44, + minHeight: PixelRatio.roundToNearestPixel(44), flexDirection: 'row', }, // SafeAreaView only adds padding