Skip to content

Commit 8ebca13

Browse files
committed
add comment
1 parent 978bdaf commit 8ebca13

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/components/Modal/BaseModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ function BaseModal(
382382
);
383383

384384
const animationInProps = useMemo(() => {
385+
// disableAnimationIn applies only to legacy modals. This should be removed once we fully migrate to `reanimated-modal`.
385386
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
386387
if (disableAnimationIn && ((type && !REANIMATED_MODAL_TYPES.includes(type)) || !shouldUseReanimatedModal)) {
387388
// We need to apply these animation props to completely disable the "animation in". Simply setting it to 0 and undefined will not work.

0 commit comments

Comments
 (0)