Use isTranslationSupported from expo-translate-text (#10108)

This commit is contained in:
DS Boyce
2026-03-23 09:56:35 -07:00
committed by GitHub
parent f08bf5fef9
commit 21d8b07bfe
3 changed files with 6 additions and 7 deletions
-3
View File
@@ -49,6 +49,3 @@ export const IS_WEB_FIREFOX: boolean = false
export const IS_HIGH_DPI: boolean = true
// ideally we'd use isLiquidGlassAvailable() from expo-glass-effect but checking iOS version is good enough for now
export const IS_LIQUID_GLASS: boolean = iOSMajorVersion >= 26
// So we can avoid attempting on-device translation when we know it's unsupported.
export const HAS_ON_DEVICE_TRANSLATION: boolean =
(IS_IOS && iOSMajorVersion >= 18) || IS_ANDROID
-1
View File
@@ -48,4 +48,3 @@ export const IS_HIGH_DPI: boolean = window.matchMedia(
'(min-resolution: 2dppx)',
).matches
export const IS_LIQUID_GLASS: boolean = false
export const HAS_ON_DEVICE_TRANSLATION: boolean = false