From 1a034c35b5fbfef5d2658b8aa092f0ea9dfea6a1 Mon Sep 17 00:00:00 2001 From: Abdelhafidh Belalia <16493223+s77rt@users.noreply.github.com> Date: Thu, 3 Aug 2023 10:29:34 +0100 Subject: [PATCH 1/3] use ScreenWrapper only if editing --- src/pages/iou/steps/MoneyRequestAmount.js | 128 ++++++++++++---------- 1 file changed, 68 insertions(+), 60 deletions(-) diff --git a/src/pages/iou/steps/MoneyRequestAmount.js b/src/pages/iou/steps/MoneyRequestAmount.js index c455cbc84c88..058d029feb6c 100755 --- a/src/pages/iou/steps/MoneyRequestAmount.js +++ b/src/pages/iou/steps/MoneyRequestAmount.js @@ -419,69 +419,77 @@ function MoneyRequestAmount(props) { const formattedAmount = replaceAllDigits(amount, toLocaleDigit); const buttonText = isEditing.current ? translate('common.save') : translate('common.next'); - return ( - - + onMouseDown(event, [amountViewID])} + style={[styles.flex1, styles.flexRow, styles.w100, styles.alignItemsCenter, styles.justifyContentCenter]} + > + (textInput.current = el)} + selectedCurrencyCode={selectedCurrencyCode} + selection={selection} + onSelectionChange={(e) => { + if (!shouldUpdateSelection) { + return; + } + setSelection(e.nativeEvent.selection); + }} + /> + + onMouseDown(event, [numPadContainerViewID, numPadViewID])} + style={[styles.w100, styles.justifyContentEnd, styles.pageWrapper]} + nativeID={numPadContainerViewID} > - {({safeAreaPaddingBottomStyle}) => ( + {DeviceCapabilities.canUseTouchScreen() ? ( + + ) : ( + + )} + +