From 02d31b1faac69c8044b4d23440382c80de27f4aa Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 14 Feb 2024 12:30:46 +0800 Subject: [PATCH 1/3] prevent swipe when selecting text --- src/components/AmountTextInput.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/AmountTextInput.tsx b/src/components/AmountTextInput.tsx index 05080fcdd21c..245aa2126d08 100644 --- a/src/components/AmountTextInput.tsx +++ b/src/components/AmountTextInput.tsx @@ -43,6 +43,7 @@ function AmountTextInput( disableKeyboard autoGrow hideFocusedState + shouldInterceptSwipe inputStyle={[styles.iouAmountTextInput, styles.p0, styles.noLeftBorderRadius, styles.noRightBorderRadius, style]} textInputContainerStyles={[styles.borderNone, styles.noLeftBorderRadius, styles.noRightBorderRadius]} onChangeText={onChangeAmount} From 44106acf99b3dbbf6716130601e5aef815ee31f1 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Wed, 14 Feb 2024 12:30:57 +0800 Subject: [PATCH 2/3] remove intercept swipe from native input --- src/components/TextInput/BaseTextInput/index.native.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/TextInput/BaseTextInput/index.native.tsx b/src/components/TextInput/BaseTextInput/index.native.tsx index 9e169ab2464a..7b46019600bc 100644 --- a/src/components/TextInput/BaseTextInput/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/index.native.tsx @@ -264,11 +264,7 @@ function BaseTextInput( return ( <> - + Date: Wed, 14 Feb 2024 13:38:47 +0800 Subject: [PATCH 3/3] lint --- src/components/TextInput/BaseTextInput/index.native.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/TextInput/BaseTextInput/index.native.tsx b/src/components/TextInput/BaseTextInput/index.native.tsx index 7b46019600bc..e7f4507df7c6 100644 --- a/src/components/TextInput/BaseTextInput/index.native.tsx +++ b/src/components/TextInput/BaseTextInput/index.native.tsx @@ -9,7 +9,6 @@ import Icon from '@components/Icon'; import * as Expensicons from '@components/Icon/Expensicons'; import PressableWithoutFeedback from '@components/Pressable/PressableWithoutFeedback'; import RNTextInput from '@components/RNTextInput'; -import SwipeInterceptPanResponder from '@components/SwipeInterceptPanResponder'; import Text from '@components/Text'; import * as styleConst from '@components/TextInput/styleConst'; import TextInputLabel from '@components/TextInput/TextInputLabel'; @@ -52,7 +51,6 @@ function BaseTextInput( onInputChange = () => {}, shouldDelayFocus = false, multiline = false, - shouldInterceptSwipe = false, autoCorrect = true, prefixCharacter = '', inputID,