From 390546f6ed7965c09c8dcc4962dd18bc71c1d1d8 Mon Sep 17 00:00:00 2001 From: Rick Hanlon Date: Mon, 11 Nov 2019 16:12:50 -0800 Subject: [PATCH] Increase hitslop for notification dismiss button Summary: This diff increases the hit slop for the close button to dismiss the notifications. Changelog: [Internal] Differential Revision: D18438192 fbshipit-source-id: e671ec06c69f52f83c7dda87118ca1d2426e993b --- Libraries/LogBox/UI/LogBoxLogNotification.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Libraries/LogBox/UI/LogBoxLogNotification.js b/Libraries/LogBox/UI/LogBoxLogNotification.js index 8fc57f61905..eb2b52a5854 100644 --- a/Libraries/LogBox/UI/LogBoxLogNotification.js +++ b/Libraries/LogBox/UI/LogBoxLogNotification.js @@ -93,6 +93,12 @@ function DismissButton(props) { default: LogBoxStyle.getTextColor(0.3), pressed: LogBoxStyle.getTextColor(0.5), }} + hitSlop={{ + top: 12, + right: 10, + bottom: 12, + left: 10, + }} onPress={props.onPress} style={dismissStyles.press}>