Remove the environment indirections (#7089)

* Use raw underlying globals for environment

* Set dev EXPO_PUBLIC_ENV by exclusion
This commit is contained in:
dan
2024-12-13 17:16:53 +00:00
committed by GitHub
parent e2a7965e43
commit 356dad1932
18 changed files with 32 additions and 50 deletions
@@ -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')
}
},