File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1462,6 +1462,8 @@ const CONST = {
14621462 ANIMATION_TIMING : {
14631463 DEFAULT_IN : 300 ,
14641464 DEFAULT_OUT : 200 ,
1465+ DEFAULT_RIGHT_DOCKED_IOS_IN : 500 ,
1466+ DEFAULT_RIGHT_DOCKED_IOS_OUT : 400 ,
14651467 FAB_IN : 350 ,
14661468 FAB_OUT : 200 ,
14671469 } ,
Original file line number Diff line number Diff line change 11import React from 'react' ;
2+ import useResponsiveLayout from '@hooks/useResponsiveLayout' ;
3+ import CONST from '@src/CONST' ;
24import BaseModal from './BaseModal' ;
35import type BaseModalProps from './types' ;
46
57function Modal ( { children, ...rest } : BaseModalProps ) {
8+ const { isInNarrowPaneModal} = useResponsiveLayout ( ) ;
9+ const animationInTiming = rest . animationInTiming ?? ( isInNarrowPaneModal ? CONST . MODAL . ANIMATION_TIMING . DEFAULT_RIGHT_DOCKED_IOS_IN : undefined ) ;
10+ const animationOutTiming = rest . animationOutTiming ?? ( isInNarrowPaneModal ? CONST . MODAL . ANIMATION_TIMING . DEFAULT_RIGHT_DOCKED_IOS_OUT : undefined ) ;
11+
612 return (
713 < BaseModal
814 useNativeDriver
915 // eslint-disable-next-line react/jsx-props-no-spreading
1016 { ...rest }
17+ animationInTiming = { animationInTiming }
18+ animationOutTiming = { animationOutTiming }
1119 >
1220 { children }
1321 </ BaseModal >
Original file line number Diff line number Diff line change @@ -68,10 +68,9 @@ function ValidateCodeActionModal({
6868 onClose = { hide }
6969 onModalHide = { onModalHide ?? hide }
7070 onBackdropPress = { ( ) => Navigation . dismissModal ( ) }
71- hideModalContentWhileAnimating
72- useNativeDriver
7371 shouldUseModalPaddingStyle = { false }
7472 animationInTiming = { disableAnimation ? 1 : undefined }
73+ shouldUseReanimatedModal
7574 >
7675 < ScreenWrapper
7776 includeSafeAreaPaddingBottom
You can’t perform that action at this time.
0 commit comments