From 667435b4ef1ee4afe3d1141792588d21111cb710 Mon Sep 17 00:00:00 2001 From: Furkan Alkan Date: Mon, 19 May 2025 15:17:09 +0300 Subject: [PATCH] Fix: Allow dynamic height for text container in ActionButtonItem Fix: Allow dynamic height for text container in ActionButtonItem Removed the fixed `height` property from the `textContainer` style in `ActionButtonItem.js`. This change allows the text container to dynamically adjust its height based on the content and padding provided via the `textContainerStyle` prop. Previously, the fixed height could lead to text truncation if the content exceeded the predefined height. Now, developers can control the vertical spacing and ensure full text visibility by adjusting padding. --- ActionButtonItem.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ActionButtonItem.js b/ActionButtonItem.js index 5e2bd2b..3ea5547 100644 --- a/ActionButtonItem.js +++ b/ActionButtonItem.js @@ -206,8 +206,7 @@ const styles = StyleSheet.create({ borderRadius: 3, borderWidth: StyleSheet.hairlineWidth, borderColor: "#eee", - backgroundColor: "white", - height: TEXT_HEIGHT + backgroundColor: "white" }, text: { flex: 1,