Skip to content

Commit

Permalink
Components: Try disabling NavigatorScreen animations completely
Browse files Browse the repository at this point in the history
  • Loading branch information
tyxla committed Dec 5, 2023
1 parent 88da557 commit a7124b0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const animationEnterDelay = 0;
const animationEnterDuration = 0.14;
const animationExitDuration = 0.14;
const animationExitDelay = 0;
const DISABLE_ANIMATIONS = true;

// Props specific to `framer-motion` can't be currently passed to `NavigatorScreen`,
// as some of them would overlap with HTML props (e.g. `onAnimationStart`, ...)
Expand Down Expand Up @@ -153,7 +154,7 @@ function UnconnectedNavigatorScreen(
return null;
}

if ( prefersReducedMotion ) {
if ( prefersReducedMotion || DISABLE_ANIMATIONS ) {
return (
<View
ref={ mergedWrapperRef }
Expand Down

0 comments on commit a7124b0

Please sign in to comment.