From 3743f5c4dd3c2a62449634048635504b15b18e93 Mon Sep 17 00:00:00 2001 From: Job Date: Thu, 25 Jul 2019 21:19:07 +0200 Subject: [PATCH] Disable bottom hit slop of iOS back button This fixes a bug where the hit area of the back button overlaps a few pixels of content below the header, making it impossible to interact with that content. --- src/views/Header/HeaderBackButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/Header/HeaderBackButton.tsx b/src/views/Header/HeaderBackButton.tsx index 59dbf5ed1..b122173d0 100644 --- a/src/views/Header/HeaderBackButton.tsx +++ b/src/views/Header/HeaderBackButton.tsx @@ -169,7 +169,7 @@ class HeaderBackButton extends React.Component { pressColor={pressColorAndroid} style={[styles.container, disabled && styles.disabled]} hitSlop={Platform.select({ - ios: undefined, + ios: { top: 10, bottom: 0, right: 10, left: 10 }, default: { top: 8, right: 8, bottom: 8, left: 8 }, })} borderless