import Constants from "expo-constants";
const Constants = {
"__expo_module_name__": "ExponentConstants", // 內部屬性開發無用
"addListener": [Function addListener], // 用於新增和移除事件監聽器,以響應某些執行時事件的變化
"appOwnership": "expo", // 在 Expo Go 中執行時返回expo ,否則返回null 。區分獨立應用(已從 Expo 分離)和 Expo 託管應用很有用
"deviceName": "M2007J3SC", // 提供當前裝置的名稱。用於除錯或記錄目的,以識別正在執行應用的裝置
"easConfig": {}, // 標準 EAS 配置物件
"emit": [Function emit],
"executionEnvironment": "storeClient", // 執行環境
"experienceUrl": "exp://10.0.0.6:8083", // 體驗網址
"expoConfig": { // expo 配置資訊
"_internal": {
"dynamicConfigPath": null,
"isDebug": false,
"packageJsonPath": "/Users/paul/code/project/react-native/react-native-expo-examples/package.json",
"projectRoot": "/Users/paul/code/project/react-native/react-native-expo-examples",
"staticConfigPath": "/Users/paul/code/project/react-native/react-native-expo-examples/app.json"
},
"android": { "adaptiveIcon": [Object] },
"hostUri": "10.0.0.6:8083",
"icon": "./assets/icon.png",
"iconUrl": "http://10.0.0.6:8083/assets/./assets/icon.png",
"ios": { "supportsTablet": true },
"name": "react-native-expo-examples",
"orientation": "portrait",
"platforms": ["ios", "android", "web"],
"sdkVersion": "51.0.0",
"slug": "react-native-expo-examples",
"splash": {
"backgroundColor": "#ffffff",
"image": "./assets/splash.png",
"imageUrl": "http://10.0.0.6:8083/assets/./assets/splash.png",
"resizeMode": "contain"
},
"userInterfaceStyle": "light",
"version": "1.0.0",
"web": { "favicon": "./assets/favicon.png" }
},
"expoGoConfig": { // expogo 設定
"__flipperHack": "React Native packager is running", "debuggerHost": "10.0.0.6:8083",
"developer": { "projectRoot": "/Users/paul/code/project/react-native/react-native-expo-examples", "tool": "expo-cli" },
"mainModuleName": "node_modules/expo/AppEntry", "packagerOpts": { "dev": true }
},
"expoVersion": "2.31.1", // expogo 版本
"getWebViewUserAgentAsync": [Function getWebViewUserAgentAsync], // 獲取使用者代理字串
"intentUri": "exp://10.0.0.6:8083",
"isDetached": false,
"isHeadless": false,
"linkingUri": "exp://10.0.0.6:8083",
"listenerCount": [Function listenerCount],
"manifest": null,
"manifest2": { // Expo 服務生成的,包含了更多關於應用的資訊,如資產、建立時間等。
"assets": [],
"createdAt": "2024-10-19T14:28:41.878Z",
"extra": {
"eas": [Object],
"expoClient": [Object],
"expoGo": [Object],
"scopeKey": "@anonymous/react-native-expo-examples-7b47b5b5-95f1-48a7-9c1e-7b1a2807e244"
},
"id": "79b45ea1-82af-43bd-924e-ff51199b8f0e",
"isVerified": true,
"launchAsset": { "contentType": "application/javascript", "key": "bundle", "url": "http://10.0.0.6:8083/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=app" },
"metadata": {},
"runtimeVersion": "exposdk:51.0.0"
},
"nativeAppVersion": "2.31.1", // expogo 版本
"nativeBuildVersion": 248,
"platform": { // 已棄用。使用expo-device的Device.modelId 。
"android": { "versionCode": null }
},
"removeAllListeners": [Function removeAllListeners],
"removeListener": [Function removeListener],
"removeSubscription": [Function removeSubscription],
"sessionId": "145125b9-2bd6-4790-8b95-e7fd31187570",
"statusBarHeight": 32, // 裝置的預設狀態列高度。不考慮使用位置跟蹤或通話時的變化。
"supportedExpoSdks": ["51.0.0"],
"systemFonts": [ // 系統字型
"normal",
"notoserif",
"sans-serif",
"sans-serif-light",
"sans-serif-thin",
"sans-serif-condensed",
"sans-serif-medium",
"serif",
"Roboto",
"monospace"],
"systemVersion": "12" // 已棄用。使用expo-device的Device.osVersion 。
}