mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
This commit is contained in:
committed by
Facebook Github Bot
parent
a9ffad446a
commit
390546f6ed
@@ -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}>
|
||||
<Image
|
||||
|
||||
Reference in New Issue
Block a user