Skip to content

Commit a31fb62

Browse files
committed
Fix style regression for other modal types
1 parent 5513e40 commit a31fb62

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/components/Modal/ReanimatedModal/Container/index.web.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,12 @@ function Container({
4646

4747
return (
4848
<Animated.View
49-
style={[style, type === CONST.MODAL.MODAL_TYPE.BOTTOM_DOCKED && [styles.modalContainer, styles.modalAnimatedContainer], animatedStyles, {zIndex: 1}]}
49+
style={[
50+
style,
51+
type !== CONST.MODAL.MODAL_TYPE.RIGHT_DOCKED && type !== CONST.MODAL.MODAL_TYPE.POPOVER && [styles.modalContainer, styles.modalAnimatedContainer],
52+
animatedStyles,
53+
{zIndex: 1},
54+
]}
5055
exiting={Exiting}
5156
// eslint-disable-next-line react/jsx-props-no-spreading
5257
{...props}

0 commit comments

Comments
 (0)