about summary refs log tree commit diff
path: root/modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift
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 /modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift
parentfb278384c64f55e5037275a23f4bd7af91dc7274 (diff)
downloadvoidsky-18b423396b75d8b4348a434412d0da1f38230717.tar.zst
Add `PlatformInfo` module (#4877)
Diffstat (limited to 'modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift')
-rw-r--r--modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift b/modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift
new file mode 100644
index 000000000..4a1e6d7e7
--- /dev/null
+++ b/modules/expo-bluesky-swiss-army/ios/PlatformInfo/ExpoPlatformInfoModule.swift
@@ -0,0 +1,11 @@
+import ExpoModulesCore
+
+public class ExpoPlatformInfoModule: Module {
+  public func definition() -> ModuleDefinition {
+    Name("ExpoPlatformInfo")
+
+    Function("getIsReducedMotionEnabled") {
+      return UIAccessibility.isReduceMotionEnabled
+    }
+  }
+}