From b7b86a651305f3884b477d10b6627852f925b67c Mon Sep 17 00:00:00 2001 From: Samuel Holmes Date: Fri, 12 Jan 2024 09:47:49 -0800 Subject: [PATCH] Move touchable up the component tree for greater surface coverage --- src/components/themed/FlipInput2.tsx | 66 ++++++++++++++-------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/src/components/themed/FlipInput2.tsx b/src/components/themed/FlipInput2.tsx index e8406b401ed..1d728290eef 100644 --- a/src/components/themed/FlipInput2.tsx +++ b/src/components/themed/FlipInput2.tsx @@ -138,30 +138,27 @@ export const FlipInput2 = React.forwardRef((props: Props, r const isEnterTextMode = amountFocused || !zeroAmount const currencyName = fieldInfos[fieldNum].currencyName - const inputRef = inputRefs[fieldNum] return ( - inputRef.current?.focus()}> - - - {!isEnterTextMode ? {lstrings.string_tap_to_edit} : null} - {isEnterTextMode ? {' ' + currencyName} : null} - - + + + {!isEnterTextMode ? {lstrings.string_tap_to_edit} : null} + {isEnterTextMode ? {' ' + currencyName} : null} + ) } @@ -191,16 +188,19 @@ export const FlipInput2 = React.forwardRef((props: Props, r return ( <> - - - {renderTopRow(1)} - {renderBottomRow(0)} - - - {renderTopRow(0)} - {renderBottomRow(1)} - - + inputRefs[primaryField].current?.focus()}> + + + {renderTopRow(1)} + {renderBottomRow(0)} + + + {renderTopRow(0)} + {renderBottomRow(1)} + + + + @@ -273,6 +273,7 @@ const BackAnimatedView = styled(Animated.View)<{ animatedValue: SharedValue () => [ { + alignSelf: 'flex-start', color: theme.textInputPlaceholderColor, fontFamily: theme.fontFaceDefault, fontSize: theme.rem(0.8), @@ -307,7 +308,6 @@ const AmountAnimatedNumericInput = styledWithRef(AnimatedNumericInput)<{ focusAn ) const PlaceholderAnimatedText = styled(Animated.Text)(theme => ({ - // opacity: 0, position: 'absolute', left: 0, top: 0,