Move /platform/detection vars into /env (#9707)

* Add platform vars to env

* Replace /platform/detection with /env
This commit is contained in:
Eric Bailey
2026-01-16 16:28:17 -06:00
committed by GitHub
parent bd510d8468
commit 0589bd7d9e
244 changed files with 789 additions and 789 deletions
+2 -2
View File
@@ -2,7 +2,7 @@ import {useCallback} from 'react'
import * as IntentLauncher from 'expo-intent-launcher'
import {getTranslatorLink} from '#/locale/helpers'
import {isAndroid} from '#/platform/detection'
import {IS_ANDROID} from '#/env'
import {useOpenLink} from './useOpenLink'
export function useTranslate() {
@@ -11,7 +11,7 @@ export function useTranslate() {
return useCallback(
async (text: string, language: string) => {
const translateUrl = getTranslatorLink(text, language)
if (isAndroid) {
if (IS_ANDROID) {
try {
// use getApplicationIconAsync to determine if the translate app is installed
if (