add tester

This commit is contained in:
Hailey
2024-08-04 19:32:05 -07:00
parent d5f42237d6
commit fb0c964d42
5 changed files with 24 additions and 4 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
import * as PlatformInfo from './src/PlatformInfo'
import * as Referrer from './src/Referrer'
import * as SharedPrefs from './src/SharedPrefs'
export {Referrer, SharedPrefs}
export {PlatformInfo, Referrer, SharedPrefs}
@@ -2,6 +2,6 @@ import {requireNativeModule} from 'expo-modules-core'
const NativeModule = requireNativeModule('ExpoPlatformInfo')
export function getIsReducedMotionEnabled() {
export function getIsReducedMotionEnabled(): boolean {
return NativeModule.getIsReducedMotionEnabled()
}
@@ -1,5 +1,5 @@
import {NotImplementedError} from '../NotImplemented'
export function getIsReducedMotionEnabled() {
export function getIsReducedMotionEnabled(): boolean {
throw new NotImplementedError()
}
@@ -1,4 +1,4 @@
export function getIsReducedMotionEnabled() {
export function getIsReducedMotionEnabled(): boolean {
if (typeof window === 'undefined') {
return false
}