Skip to content

Commit d33fcab

Browse files
committed
Reduce "Cancel" tappable area
The tappable area was overlapping the X
1 parent 683e325 commit d33fcab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/themed/SimpleTextInput.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ export const SimpleTextInput = React.forwardRef<SimpleTextInputRef, SimpleTextIn
119119

120120
const hasIcon = Icon != null
121121
const hasValue = value !== ''
122-
const isIos = Platform.OS === 'ios'
122+
const isIos = true // Platform.OS === 'ios'
123123

124124
const [isFocused, setIsFocused] = React.useState(false)
125125

@@ -252,13 +252,13 @@ export const SimpleTextInput = React.forwardRef<SimpleTextInputRef, SimpleTextIn
252252
</InputContainerView>
253253
</EdgeTouchableWithoutFeedback>
254254
{isIos && (isFocused || active === true) && (
255-
<TouchContainer hitSlop={theme.rem(0.75)} accessible onPress={handleDonePress} testID={`${testID}.cancelButton`}>
255+
<TouchableOpacity accessible onPress={handleDonePress} testID={`${testID}.cancelButton`}>
256256
<CancelButton>
257257
<CancelText numberOfLines={1} ellipsizeMode="clip">
258258
{lstrings.string_cancel_cap}
259259
</CancelText>
260260
</CancelButton>
261-
</TouchContainer>
261+
</TouchableOpacity>
262262
)}
263263
</ContainerView>
264264
)

0 commit comments

Comments
 (0)