about summary refs log tree commit diff
path: root/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts
diff options
context:
space:
mode:
Diffstat (limited to 'modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts')
-rw-r--r--modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts
new file mode 100644
index 000000000..c7ae6b7cd
--- /dev/null
+++ b/modules/expo-bluesky-swiss-army/src/PlatformInfo/index.web.ts
@@ -0,0 +1,6 @@
+export function getIsReducedMotionEnabled(): boolean {
+  if (typeof window === 'undefined') {
+    return false
+  }
+  return window.matchMedia('(prefers-reduced-motion: reduce)').matches
+}