fix:环境变量

This commit is contained in:
吕新雨
2026-02-03 02:36:42 +08:00
parent 8c02c5b9a0
commit 4c450db9b2
5 changed files with 53 additions and 15 deletions

8
client/global.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
/**
* React Native 全局常量声明。
*
* 说明:`__DEV__` 在运行时由 RN 注入,用于区分开发/生产环境。
* 这里补充 TypeScript 声明,避免在代码里使用时出现类型报错。
*/
declare const __DEV__: boolean;