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
+3 -3
View File
@@ -1,8 +1,8 @@
import {View} from 'react-native'
import {isTouchDevice} from '#/lib/browser'
import {isNative, isWeb} from '#/platform/detection'
import {atoms as a, useTheme, type ViewStyleProp} from '#/alf'
import {IS_NATIVE, IS_WEB} from '#/env'
export function SubtleHover({
style,
@@ -39,9 +39,9 @@ export function SubtleHover({
/>
)
if (isWeb && web) {
if (IS_WEB && web) {
return isTouchDevice ? null : el
} else if (isNative && native) {
} else if (IS_NATIVE && native) {
return el
}