@@ -6,7 +6,6 @@ import ScreenWrapper from '@components/ScreenWrapper';
66import SelectionList from '@components/SelectionList' ;
77import RadioListItem from '@components/SelectionList/RadioListItem' ;
88import useLocalize from '@hooks/useLocalize' ;
9- import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
109import useThemeStyles from '@hooks/useThemeStyles' ;
1110import Navigation from '@libs/Navigation/Navigation' ;
1211import CONST from '@src/CONST' ;
@@ -29,7 +28,6 @@ type PaymentCardCurrencyModalProps = {
2928} ;
3029
3130function PaymentCardCurrencyModal ( { isVisible, currencies, currentCurrency = CONST . PAYMENT_CARD_CURRENCY . USD , onCurrencyChange, onClose} : PaymentCardCurrencyModalProps ) {
32- const { shouldUseNarrowLayout} = useResponsiveLayout ( ) ;
3331 const styles = useThemeStyles ( ) ;
3432 const { translate} = useLocalize ( ) ;
3533 const { sections} = useMemo (
@@ -54,10 +52,11 @@ function PaymentCardCurrencyModal({isVisible, currencies, currentCurrency = CONS
5452 isVisible = { isVisible }
5553 onClose = { ( ) => onClose ?.( ) }
5654 onModalHide = { onClose }
57- hideModalContentWhileAnimating
58- innerContainerStyle = { styles . RHPNavigatorContainer ( shouldUseNarrowLayout ) }
59- onBackdropPress = { Navigation . dismissModal }
60- useNativeDriver
55+ onBackdropPress = { ( ) => {
56+ onClose ?.( ) ;
57+ Navigation . dismissModal ( ) ;
58+ } }
59+ shouldUseReanimatedModal
6160 >
6261 < ScreenWrapper
6362 style = { styles . pb0 }
0 commit comments