Fix log handling via env vars in expo

This commit is contained in:
Eric Bailey
2023-12-04 13:14:20 -06:00
parent 28b13cda3a
commit c1887f510f
5 changed files with 20 additions and 8 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
export const IS_TEST = process.env.NODE_ENV === 'test'
export const IS_TEST = process.env.EXPO_PUBLIC_ENV === 'test'
export const IS_DEV = __DEV__
export const IS_PROD = !IS_DEV
export const LOG_DEBUG = process.env.EXPO_PUBLIC_LOG_DEBUG || ''