about summary refs log tree commit diff
path: root/src/view/com/util/text/Text.tsx
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-12-13 17:16:53 +0000
committerGitHub <noreply@github.com>2024-12-13 17:16:53 +0000
commit356dad1932c3404f581b747127ae251dbe165bb3 (patch)
treed966d4c5fd4645f9897a984a018d7258399e1674 /src/view/com/util/text/Text.tsx
parente2a7965e438db9f70d76d2d7a911aa4c4a42c122 (diff)
downloadvoidsky-356dad1932c3404f581b747127ae251dbe165bb3.tar.zst
Remove the environment indirections (#7089)
* Use raw underlying globals for environment

* Set dev EXPO_PUBLIC_ENV by exclusion
Diffstat (limited to 'src/view/com/util/text/Text.tsx')
-rw-r--r--src/view/com/util/text/Text.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/view/com/util/text/Text.tsx b/src/view/com/util/text/Text.tsx
index f05274f44..785cef09a 100644
--- a/src/view/com/util/text/Text.tsx
+++ b/src/view/com/util/text/Text.tsx
@@ -12,7 +12,6 @@ import {
   renderChildrenWithEmoji,
   StringChild,
 } from '#/alf/typography'
-import {IS_DEV} from '#/env'
 
 export type CustomTextProps = Omit<TextProps, 'children'> & {
   type?: TypographyVariant
@@ -49,7 +48,7 @@ function Text_DEPRECATED({
   const theme = useTheme()
   const {fonts} = useAlf()
 
-  if (IS_DEV) {
+  if (__DEV__) {
     if (!emoji && childHasEmoji(children)) {
       logger.warn(
         `Text: emoji detected but emoji not enabled: "${children}"\n\nPlease add <Text emoji />'`,