Skip to content

Commit 6ec97d9

Browse files
committed
Bring back onBackdropPress and remove unused props
1 parent a9df595 commit 6ec97d9

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/components/AddPaymentCard/PaymentCardCurrencyModal.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import SelectionList from '@components/SelectionList';
77
import RadioListItem from '@components/SelectionList/RadioListItem';
88
import useLocalize from '@hooks/useLocalize';
99
import useThemeStyles from '@hooks/useThemeStyles';
10+
import Navigation from '@libs/Navigation/Navigation';
1011
import CONST from '@src/CONST';
1112

1213
type PaymentCardCurrencyModalProps = {
@@ -51,8 +52,10 @@ function PaymentCardCurrencyModal({isVisible, currencies, currentCurrency = CONS
5152
isVisible={isVisible}
5253
onClose={() => onClose?.()}
5354
onModalHide={onClose}
54-
hideModalContentWhileAnimating
55-
useNativeDriver
55+
onBackdropPress={() => {
56+
onClose?.();
57+
Navigation.dismissModal();
58+
}}
5659
shouldUseReanimatedModal
5760
>
5861
<ScreenWrapper

0 commit comments

Comments
 (0)