about summary refs log tree commit diff
path: root/src/state/a11y.tsx
diff options
context:
space:
mode:
authorHailey <me@haileyok.com>2024-08-05 12:21:34 -0700
committerGitHub <noreply@github.com>2024-08-05 12:21:34 -0700
commit18b423396b75d8b4348a434412d0da1f38230717 (patch)
tree3a3032668f498bb2d17fbee7514493d4f82cc6b3 /src/state/a11y.tsx
parentfb278384c64f55e5037275a23f4bd7af91dc7274 (diff)
downloadvoidsky-18b423396b75d8b4348a434412d0da1f38230717.tar.zst
Add `PlatformInfo` module (#4877)
Diffstat (limited to 'src/state/a11y.tsx')
-rw-r--r--src/state/a11y.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state/a11y.tsx b/src/state/a11y.tsx
index aefcfd1ec..08948267c 100644
--- a/src/state/a11y.tsx
+++ b/src/state/a11y.tsx
@@ -1,8 +1,8 @@
 import React from 'react'
 import {AccessibilityInfo} from 'react-native'
-import {isReducedMotion} from 'react-native-reanimated'
 
 import {isWeb} from '#/platform/detection'
+import {PlatformInfo} from '../../modules/expo-bluesky-swiss-army'
 
 const Context = React.createContext({
   reduceMotionEnabled: false,
@@ -15,7 +15,7 @@ export function useA11y() {
 
 export function Provider({children}: React.PropsWithChildren<{}>) {
   const [reduceMotionEnabled, setReduceMotionEnabled] = React.useState(() =>
-    isReducedMotion(),
+    PlatformInfo.getIsReducedMotionEnabled(),
   )
   const [screenReaderEnabled, setScreenReaderEnabled] = React.useState(false)