Skip to content

Commit

Permalink
Merge pull request Expensify#31225 from BhuvaneshPatil/30508-double-t…
Browse files Browse the repository at this point in the history
…ap-issue

fix: double tap on currency selects AFN
  • Loading branch information
amyevans authored Nov 16, 2023
2 parents d220f6c + 3fbdf32 commit 1deced4
Showing 1 changed file with 23 additions and 14 deletions.
37 changes: 23 additions & 14 deletions src/pages/iou/IOUCurrencySelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,20 +157,29 @@ function IOUCurrencySelection(props) {
onEntryTransitionEnd={() => optionsSelectorRef.current && optionsSelectorRef.current.focus()}
testID={IOUCurrencySelection.displayName}
>
<HeaderWithBackButton
title={translate('common.selectCurrency')}
onBackButtonPress={() => Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID))}
/>
<SelectionList
sections={sections}
textInputLabel={translate('common.search')}
textInputValue={searchValue}
onChangeText={setSearchValue}
onSelectRow={confirmCurrencySelection}
headerMessage={headerMessage}
initiallyFocusedOptionKey={initiallyFocusedOptionKey}
showScrollIndicator
/>
{({didScreenTransitionEnd}) => (
<>
<HeaderWithBackButton
title={translate('common.selectCurrency')}
onBackButtonPress={() => Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID))}
/>
<SelectionList
sections={sections}
textInputLabel={translate('common.search')}
textInputValue={searchValue}
onChangeText={setSearchValue}
onSelectRow={(option) => {
if (!didScreenTransitionEnd) {
return;
}
confirmCurrencySelection(option);
}}
headerMessage={headerMessage}
initiallyFocusedOptionKey={initiallyFocusedOptionKey}
showScrollIndicator
/>
</>
)}
</ScreenWrapper>
);
}
Expand Down

0 comments on commit 1deced4

Please sign in to comment.