about summary refs log tree commit diff
path: root/src/lib/hooks/useEnableKeyboardController.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/lib/hooks/useEnableKeyboardController.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/lib/hooks/useEnableKeyboardController.tsx')
-rw-r--r--src/lib/hooks/useEnableKeyboardController.tsx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/hooks/useEnableKeyboardController.tsx b/src/lib/hooks/useEnableKeyboardController.tsx
index c7205d016..366791c0c 100644
--- a/src/lib/hooks/useEnableKeyboardController.tsx
+++ b/src/lib/hooks/useEnableKeyboardController.tsx
@@ -12,8 +12,6 @@ import {
 } from 'react-native-keyboard-controller'
 import {useFocusEffect} from '@react-navigation/native'
 
-import {IS_DEV} from '#/env'
-
 const KeyboardControllerRefCountContext = createContext<{
   incrementRefCount: () => void
   decrementRefCount: () => void
@@ -57,7 +55,7 @@ function KeyboardControllerProviderInner({
         refCount.current--
         setEnabled(refCount.current > 0)
 
-        if (IS_DEV && refCount.current < 0) {
+        if (__DEV__ && refCount.current < 0) {
           console.error('KeyboardController ref count < 0')
         }
       },