Skip to content

Commit

Permalink
Add boolean cast
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bert committed Sep 26, 2023
1 parent 958fce5 commit ea5afe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reanimated2/PlatformChecker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export function isReducedMotion() {
? // @ts-ignore Fallback if `window` is undefined.
!window.matchMedia('(prefers-reduced-motion: no-preference)').matches
: false
: (global as localGlobal)._REANIMATED_IS_REDUCED_MOTION ?? false;
: !!(global as localGlobal)._REANIMATED_IS_REDUCED_MOTION ?? false;
}

0 comments on commit ea5afe1

Please sign in to comment.