Add PlatformInfo
module (#4877)
This commit is contained in:
parent
fb278384c6
commit
18b423396b
13 changed files with 92 additions and 38 deletions
|
@ -0,0 +1,11 @@
|
|||
import ExpoModulesCore
|
||||
|
||||
public class ExpoPlatformInfoModule: Module {
|
||||
public func definition() -> ModuleDefinition {
|
||||
Name("ExpoPlatformInfo")
|
||||
|
||||
Function("getIsReducedMotionEnabled") {
|
||||
return UIAccessibility.isReduceMotionEnabled
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue