react-native-inapp-inspector 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +11 -0
- package/dist/commonjs/components/Inspector/AuditTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/AuditTab.js +741 -0
- package/dist/commonjs/components/Inspector/DeviceTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/DeviceTab.js +717 -0
- package/dist/commonjs/components/Inspector/FirstTimeWalkthroughModal.d.ts +7 -0
- package/dist/commonjs/components/Inspector/FirstTimeWalkthroughModal.js +600 -0
- package/dist/commonjs/components/Inspector/InspectorHeader.js +28 -25
- package/dist/commonjs/components/Inspector/MainScreen.js +19 -2
- package/dist/commonjs/components/Inspector/NetworkDetail.js +15 -0
- package/dist/commonjs/components/Inspector/PerformanceHud.d.ts +7 -0
- package/dist/commonjs/components/Inspector/PerformanceHud.js +210 -0
- package/dist/commonjs/components/Inspector/PerformanceTab.js +30 -18
- package/dist/commonjs/components/Inspector/RequestReplayModal.d.ts +9 -0
- package/dist/commonjs/components/Inspector/RequestReplayModal.js +792 -0
- package/dist/commonjs/components/Inspector/RequestReplayView.d.ts +8 -0
- package/dist/commonjs/components/Inspector/RequestReplayView.js +871 -0
- package/dist/commonjs/components/Inspector/SettingsPanel.js +448 -49
- package/dist/commonjs/components/Inspector/StorageTab.d.ts +3 -0
- package/dist/commonjs/components/Inspector/StorageTab.js +610 -0
- package/dist/commonjs/components/Inspector/TabBar.js +23 -2
- package/dist/commonjs/components/NetworkIcons.d.ts +12 -0
- package/dist/commonjs/components/NetworkIcons.js +72 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/storageInspector.d.ts +13 -0
- package/dist/commonjs/customHooks/storageInspector.js +179 -0
- package/dist/commonjs/helpers/deviceInfo.d.ts +4 -0
- package/dist/commonjs/helpers/deviceInfo.js +94 -0
- package/dist/commonjs/helpers/index.d.ts +2 -0
- package/dist/commonjs/helpers/index.js +12 -1
- package/dist/commonjs/helpers/packageAuditor.d.ts +5 -0
- package/dist/commonjs/helpers/packageAuditor.js +182 -0
- package/dist/commonjs/helpers/settingsStore.d.ts +1 -1
- package/dist/commonjs/helpers/settingsStore.js +4 -2
- package/dist/commonjs/i18n/locales/en.json +3 -2
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +127 -9
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/types/enums.d.ts +7 -0
- package/dist/commonjs/types/enums.js +7 -0
- package/dist/commonjs/types/interfaces.d.ts +77 -0
- package/dist/esm/components/Inspector/AuditTab.d.ts +3 -0
- package/dist/esm/components/Inspector/AuditTab.js +702 -0
- package/dist/esm/components/Inspector/DeviceTab.d.ts +3 -0
- package/dist/esm/components/Inspector/DeviceTab.js +678 -0
- package/dist/esm/components/Inspector/FirstTimeWalkthroughModal.d.ts +7 -0
- package/dist/esm/components/Inspector/FirstTimeWalkthroughModal.js +560 -0
- package/dist/esm/components/Inspector/InspectorHeader.js +28 -25
- package/dist/esm/components/Inspector/MainScreen.js +19 -2
- package/dist/esm/components/Inspector/NetworkDetail.js +16 -1
- package/dist/esm/components/Inspector/PerformanceHud.d.ts +7 -0
- package/dist/esm/components/Inspector/PerformanceHud.js +170 -0
- package/dist/esm/components/Inspector/PerformanceTab.js +31 -19
- package/dist/esm/components/Inspector/RequestReplayModal.d.ts +9 -0
- package/dist/esm/components/Inspector/RequestReplayModal.js +752 -0
- package/dist/esm/components/Inspector/RequestReplayView.d.ts +8 -0
- package/dist/esm/components/Inspector/RequestReplayView.js +831 -0
- package/dist/esm/components/Inspector/SettingsPanel.js +449 -50
- package/dist/esm/components/Inspector/StorageTab.d.ts +3 -0
- package/dist/esm/components/Inspector/StorageTab.js +571 -0
- package/dist/esm/components/Inspector/TabBar.js +24 -3
- package/dist/esm/components/NetworkIcons.d.ts +12 -0
- package/dist/esm/components/NetworkIcons.js +57 -0
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/storageInspector.d.ts +13 -0
- package/dist/esm/customHooks/storageInspector.js +170 -0
- package/dist/esm/helpers/deviceInfo.d.ts +4 -0
- package/dist/esm/helpers/deviceInfo.js +89 -0
- package/dist/esm/helpers/index.d.ts +2 -0
- package/dist/esm/helpers/index.js +10 -0
- package/dist/esm/helpers/packageAuditor.d.ts +5 -0
- package/dist/esm/helpers/packageAuditor.js +173 -0
- package/dist/esm/helpers/settingsStore.d.ts +1 -1
- package/dist/esm/helpers/settingsStore.js +4 -2
- package/dist/esm/i18n/locales/en.json +3 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +123 -8
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/types/enums.d.ts +7 -0
- package/dist/esm/types/enums.js +7 -0
- package/dist/esm/types/interfaces.d.ts +77 -0
- package/ios/NetworkInspectorModule.mm +12 -5
- package/package.json +4 -1
|
@@ -0,0 +1,717 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.DeviceTab = void 0;
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const react_native_1 = require("react-native");
|
|
42
|
+
const InspectorContext_1 = require("./InspectorContext");
|
|
43
|
+
const TouchableScale_1 = __importDefault(require("../TouchableScale"));
|
|
44
|
+
const AppColors_1 = require("../../styles/AppColors");
|
|
45
|
+
const AppFonts_1 = require("../../styles/AppFonts");
|
|
46
|
+
const helpers_1 = require("../../helpers");
|
|
47
|
+
const toast_1 = require("../../helpers/toast");
|
|
48
|
+
const NetworkIcons_1 = require("../NetworkIcons");
|
|
49
|
+
const NativeInspector_1 = require("../../native/NativeInspector");
|
|
50
|
+
exports.DeviceTab = react_1.default.memo(() => {
|
|
51
|
+
const { deviceInfo } = (0, InspectorContext_1.useInspector)();
|
|
52
|
+
const [activeSubTab, setActiveSubTab] = (0, react_1.useState)('overview');
|
|
53
|
+
const [nativeMetrics, setNativeMetrics] = (0, react_1.useState)(null);
|
|
54
|
+
const [search, setSearch] = (0, react_1.useState)('');
|
|
55
|
+
(0, react_1.useEffect)(() => {
|
|
56
|
+
let cancelled = false;
|
|
57
|
+
(0, NativeInspector_1.getNativeDeviceMetrics)().then(metrics => {
|
|
58
|
+
if (!cancelled && metrics) {
|
|
59
|
+
setNativeMetrics(metrics);
|
|
60
|
+
}
|
|
61
|
+
}).catch(() => { });
|
|
62
|
+
return () => {
|
|
63
|
+
cancelled = true;
|
|
64
|
+
};
|
|
65
|
+
}, []);
|
|
66
|
+
const deviceId = nativeMetrics?.deviceId || deviceInfo.deviceId || 'UNKNOWN-DEVICE-ID';
|
|
67
|
+
const handleCopyDeviceId = () => {
|
|
68
|
+
(0, helpers_1.copyToClipboard)(deviceId, 'Device ID');
|
|
69
|
+
(0, toast_1.showToast)('Copied Device ID to clipboard!');
|
|
70
|
+
};
|
|
71
|
+
const handleCopyDiagnostics = () => {
|
|
72
|
+
const fullReport = {
|
|
73
|
+
...deviceInfo,
|
|
74
|
+
deviceId,
|
|
75
|
+
nativeMetrics: nativeMetrics || undefined,
|
|
76
|
+
};
|
|
77
|
+
(0, helpers_1.copyToClipboard)(JSON.stringify(fullReport, null, 2), 'Device Diagnostics Report');
|
|
78
|
+
(0, toast_1.showToast)('Copied full system diagnostics!');
|
|
79
|
+
};
|
|
80
|
+
// Sub-tabs list
|
|
81
|
+
const subTabs = [
|
|
82
|
+
{ key: 'overview', label: 'Overview', icon: 'device' },
|
|
83
|
+
{ key: 'hardware', label: 'Hardware', icon: 'cpu' },
|
|
84
|
+
{ key: 'display', label: 'Display', icon: 'monitor' },
|
|
85
|
+
{ key: 'runtime', label: 'Runtime', icon: 'code' },
|
|
86
|
+
{ key: 'raw', label: 'Raw JSON', icon: 'raw' },
|
|
87
|
+
];
|
|
88
|
+
const InfoRow = ({ label, value, badge, badgeColor, copyable, }) => {
|
|
89
|
+
const strVal = value !== undefined && value !== null ? String(value) : '—';
|
|
90
|
+
return (<react_native_1.View style={styles.infoRow}>
|
|
91
|
+
<react_native_1.Text style={styles.infoLabel}>{label}</react_native_1.Text>
|
|
92
|
+
<react_native_1.View style={styles.infoValueRow}>
|
|
93
|
+
{badge && (<react_native_1.View style={[
|
|
94
|
+
styles.inlineBadge,
|
|
95
|
+
{
|
|
96
|
+
backgroundColor: badgeColor
|
|
97
|
+
? `${badgeColor}18`
|
|
98
|
+
: `${AppColors_1.AppColors.purple}18`,
|
|
99
|
+
borderColor: badgeColor
|
|
100
|
+
? `${badgeColor}40`
|
|
101
|
+
: `${AppColors_1.AppColors.purple}40`,
|
|
102
|
+
},
|
|
103
|
+
]}>
|
|
104
|
+
<react_native_1.Text style={[
|
|
105
|
+
styles.inlineBadgeText,
|
|
106
|
+
{ color: badgeColor || AppColors_1.AppColors.purple },
|
|
107
|
+
]}>
|
|
108
|
+
{badge}
|
|
109
|
+
</react_native_1.Text>
|
|
110
|
+
</react_native_1.View>)}
|
|
111
|
+
<react_native_1.Text style={styles.infoValue} numberOfLines={2}>
|
|
112
|
+
{strVal}
|
|
113
|
+
</react_native_1.Text>
|
|
114
|
+
{copyable && strVal !== '—' && (<TouchableScale_1.default onPress={() => {
|
|
115
|
+
(0, helpers_1.copyToClipboard)(strVal, label);
|
|
116
|
+
(0, toast_1.showToast)(`Copied ${label}!`);
|
|
117
|
+
}} style={styles.inlineCopyBtn}>
|
|
118
|
+
<NetworkIcons_1.CopyIcon size={12} color={AppColors_1.AppColors.purple}/>
|
|
119
|
+
</TouchableScale_1.default>)}
|
|
120
|
+
</react_native_1.View>
|
|
121
|
+
</react_native_1.View>);
|
|
122
|
+
};
|
|
123
|
+
// Filtered raw json representation
|
|
124
|
+
const rawReportJson = (0, react_1.useMemo)(() => {
|
|
125
|
+
const data = {
|
|
126
|
+
deviceId,
|
|
127
|
+
platform: deviceInfo.platform,
|
|
128
|
+
deviceModel: deviceInfo.deviceModel,
|
|
129
|
+
osVersion: deviceInfo.osVersion,
|
|
130
|
+
appName: deviceInfo.appName,
|
|
131
|
+
bundleId: deviceInfo.bundleId,
|
|
132
|
+
appVersion: deviceInfo.appVersion,
|
|
133
|
+
buildNumber: deviceInfo.buildNumber,
|
|
134
|
+
reactNativeVersion: deviceInfo.reactNativeVersion,
|
|
135
|
+
jsEngine: deviceInfo.jsEngine,
|
|
136
|
+
isHermes: deviceInfo.isHermes,
|
|
137
|
+
isFabric: deviceInfo.isFabric,
|
|
138
|
+
isTurboModule: deviceInfo.isTurboModule,
|
|
139
|
+
arch: deviceInfo.arch,
|
|
140
|
+
screenWidth: deviceInfo.screenWidth,
|
|
141
|
+
screenHeight: deviceInfo.screenHeight,
|
|
142
|
+
screenScale: deviceInfo.screenScale,
|
|
143
|
+
screenFontScale: deviceInfo.screenFontScale,
|
|
144
|
+
statusBarHeight: deviceInfo.statusBarHeight,
|
|
145
|
+
locale: deviceInfo.locale,
|
|
146
|
+
timeZone: deviceInfo.timeZone,
|
|
147
|
+
isDevice: deviceInfo.isDevice,
|
|
148
|
+
nativeMetrics: nativeMetrics || undefined,
|
|
149
|
+
};
|
|
150
|
+
if (!search || search.trim().length === 0) {
|
|
151
|
+
return JSON.stringify(data, null, 2);
|
|
152
|
+
}
|
|
153
|
+
const q = search.toLowerCase();
|
|
154
|
+
const filtered = {};
|
|
155
|
+
for (const [k, v] of Object.entries(data)) {
|
|
156
|
+
if (k.toLowerCase().includes(q) ||
|
|
157
|
+
String(JSON.stringify(v)).toLowerCase().includes(q)) {
|
|
158
|
+
filtered[k] = v;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
return JSON.stringify(filtered, null, 2);
|
|
162
|
+
}, [deviceInfo, deviceId, nativeMetrics, search]);
|
|
163
|
+
return (<react_native_1.View style={styles.container}>
|
|
164
|
+
{/* ─── Top Segmented Tab Layout ────────────────────────────────────────── */}
|
|
165
|
+
<react_native_1.View style={styles.tabBarWrapper}>
|
|
166
|
+
<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={false} contentContainerStyle={styles.subTabBarContainer}>
|
|
167
|
+
{subTabs.map(tab => {
|
|
168
|
+
const isTabActive = activeSubTab === tab.key;
|
|
169
|
+
const iconColor = isTabActive ? AppColors_1.AppColors.white : AppColors_1.AppColors.grayText;
|
|
170
|
+
return (<TouchableScale_1.default key={tab.key} onPress={() => setActiveSubTab(tab.key)} style={[
|
|
171
|
+
styles.subTabButton,
|
|
172
|
+
isTabActive && styles.subTabButtonActive,
|
|
173
|
+
]}>
|
|
174
|
+
<react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 5 }}>
|
|
175
|
+
{tab.key === 'overview' && <NetworkIcons_1.DevicePhoneIcon size={12} color={iconColor}/>}
|
|
176
|
+
{tab.key === 'hardware' && <NetworkIcons_1.CpuIcon size={12} color={iconColor}/>}
|
|
177
|
+
{tab.key === 'display' && <NetworkIcons_1.MonitorIcon size={12} color={iconColor}/>}
|
|
178
|
+
{tab.key === 'runtime' && <NetworkIcons_1.CodeIcon size={12} color={iconColor}/>}
|
|
179
|
+
{tab.key === 'raw' && <NetworkIcons_1.CopyIcon size={12} color={iconColor}/>}
|
|
180
|
+
<react_native_1.Text style={[
|
|
181
|
+
styles.subTabText,
|
|
182
|
+
isTabActive && styles.subTabTextActive,
|
|
183
|
+
]}>
|
|
184
|
+
{tab.label}
|
|
185
|
+
</react_native_1.Text>
|
|
186
|
+
</react_native_1.View>
|
|
187
|
+
</TouchableScale_1.default>);
|
|
188
|
+
})}
|
|
189
|
+
</react_native_1.ScrollView>
|
|
190
|
+
</react_native_1.View>
|
|
191
|
+
|
|
192
|
+
<react_native_1.ScrollView style={styles.scrollArea} contentContainerStyle={styles.contentContainer} showsVerticalScrollIndicator={false}>
|
|
193
|
+
{/* ─── Hero Device ID Banner (Universal across tabs) ───────────────────── */}
|
|
194
|
+
<react_native_1.View style={styles.deviceIdHeroCard}>
|
|
195
|
+
<react_native_1.View style={styles.deviceIdHeader}>
|
|
196
|
+
<react_native_1.View style={styles.deviceIdBadgeRow}>
|
|
197
|
+
<react_native_1.View style={styles.platformBadge}>
|
|
198
|
+
{deviceInfo.platform === 'ios' ? (<NetworkIcons_1.AppleIcon size={14} color={AppColors_1.AppColors.purple}/>) : (<NetworkIcons_1.AndroidIcon size={14} color={AppColors_1.AppColors.purple}/>)}
|
|
199
|
+
<react_native_1.Text style={styles.platformBadgeText}>
|
|
200
|
+
{deviceInfo.platform === 'ios' ? 'Apple iOS' : 'Google Android'}
|
|
201
|
+
</react_native_1.Text>
|
|
202
|
+
</react_native_1.View>
|
|
203
|
+
<react_native_1.View style={styles.idTypeBadge}>
|
|
204
|
+
<NetworkIcons_1.FingerprintIcon size={12} color={AppColors_1.AppColors.purple}/>
|
|
205
|
+
<react_native_1.Text style={styles.idTypeBadgeText}>
|
|
206
|
+
{deviceInfo.platform === 'ios' ? 'IDFV / Vendor ID' : 'Android ID'}
|
|
207
|
+
</react_native_1.Text>
|
|
208
|
+
</react_native_1.View>
|
|
209
|
+
</react_native_1.View>
|
|
210
|
+
|
|
211
|
+
<TouchableScale_1.default onPress={handleCopyDeviceId} style={styles.copyIdPill}>
|
|
212
|
+
<NetworkIcons_1.CopyIcon size={11} color={AppColors_1.AppColors.white}/>
|
|
213
|
+
<react_native_1.Text style={styles.copyIdPillText}>Copy ID</react_native_1.Text>
|
|
214
|
+
</TouchableScale_1.default>
|
|
215
|
+
</react_native_1.View>
|
|
216
|
+
|
|
217
|
+
<react_native_1.Text style={styles.deviceIdValue} selectable numberOfLines={1}>
|
|
218
|
+
{deviceId}
|
|
219
|
+
</react_native_1.Text>
|
|
220
|
+
</react_native_1.View>
|
|
221
|
+
|
|
222
|
+
{/* ─── 1. OVERVIEW SUB-TAB ─────────────────────────────────────────────── */}
|
|
223
|
+
{activeSubTab === 'overview' && (<>
|
|
224
|
+
<react_native_1.View style={styles.headerBanner}>
|
|
225
|
+
<react_native_1.View style={styles.headerLeft}>
|
|
226
|
+
<react_native_1.View style={styles.deviceIconBox}>
|
|
227
|
+
{deviceInfo.platform === 'ios' ? (<NetworkIcons_1.AppleIcon size={22} color={AppColors_1.AppColors.purple}/>) : (<NetworkIcons_1.AndroidIcon size={22} color={AppColors_1.AppColors.purple}/>)}
|
|
228
|
+
</react_native_1.View>
|
|
229
|
+
<react_native_1.View style={{ flex: 1 }}>
|
|
230
|
+
<react_native_1.Text style={styles.deviceTitle}>{deviceInfo.deviceModel}</react_native_1.Text>
|
|
231
|
+
<react_native_1.Text style={styles.deviceSubtitle}>{deviceInfo.osVersion}</react_native_1.Text>
|
|
232
|
+
</react_native_1.View>
|
|
233
|
+
</react_native_1.View>
|
|
234
|
+
|
|
235
|
+
<TouchableScale_1.default onPress={handleCopyDiagnostics} style={styles.copyDiagnosticsBtn}>
|
|
236
|
+
<NetworkIcons_1.CopyIcon size={12} color={AppColors_1.AppColors.white}/>
|
|
237
|
+
<react_native_1.Text style={styles.copyDiagnosticsText}>Copy Report</react_native_1.Text>
|
|
238
|
+
</TouchableScale_1.default>
|
|
239
|
+
</react_native_1.View>
|
|
240
|
+
|
|
241
|
+
{/* Quick Spec Matrix */}
|
|
242
|
+
<react_native_1.View style={styles.matrixGrid}>
|
|
243
|
+
<react_native_1.View style={styles.matrixCard}>
|
|
244
|
+
<react_native_1.Text style={styles.matrixLabel}>ENGINE</react_native_1.Text>
|
|
245
|
+
<react_native_1.Text style={styles.matrixValue}>{deviceInfo.jsEngine}</react_native_1.Text>
|
|
246
|
+
<react_native_1.Text style={styles.matrixSub}>
|
|
247
|
+
{deviceInfo.isHermes ? '⚡ Bytecode' : 'JIT Runtime'}
|
|
248
|
+
</react_native_1.Text>
|
|
249
|
+
</react_native_1.View>
|
|
250
|
+
<react_native_1.View style={styles.matrixCard}>
|
|
251
|
+
<react_native_1.Text style={styles.matrixLabel}>ARCHITECTURE</react_native_1.Text>
|
|
252
|
+
<react_native_1.Text style={styles.matrixValue}>
|
|
253
|
+
{deviceInfo.isFabric ? 'Fabric' : 'Paper'}
|
|
254
|
+
</react_native_1.Text>
|
|
255
|
+
<react_native_1.Text style={styles.matrixSub}>
|
|
256
|
+
{deviceInfo.arch || 'arm64'}
|
|
257
|
+
</react_native_1.Text>
|
|
258
|
+
</react_native_1.View>
|
|
259
|
+
<react_native_1.View style={styles.matrixCard}>
|
|
260
|
+
<react_native_1.Text style={styles.matrixLabel}>REACT NATIVE</react_native_1.Text>
|
|
261
|
+
<react_native_1.Text style={styles.matrixValue}>v{deviceInfo.reactNativeVersion}</react_native_1.Text>
|
|
262
|
+
<react_native_1.Text style={styles.matrixSub}>Framework</react_native_1.Text>
|
|
263
|
+
</react_native_1.View>
|
|
264
|
+
<react_native_1.View style={styles.matrixCard}>
|
|
265
|
+
<react_native_1.Text style={styles.matrixLabel}>DISPLAY</react_native_1.Text>
|
|
266
|
+
<react_native_1.Text style={styles.matrixValue}>
|
|
267
|
+
{deviceInfo.screenWidth}×{deviceInfo.screenHeight}
|
|
268
|
+
</react_native_1.Text>
|
|
269
|
+
<react_native_1.Text style={styles.matrixSub}>@{deviceInfo.screenScale}x Density</react_native_1.Text>
|
|
270
|
+
</react_native_1.View>
|
|
271
|
+
</react_native_1.View>
|
|
272
|
+
|
|
273
|
+
{/* App Overview Summary */}
|
|
274
|
+
<react_native_1.View style={styles.card}>
|
|
275
|
+
<react_native_1.View style={styles.cardTitleRow}>
|
|
276
|
+
<NetworkIcons_1.CodeIcon size={14} color={AppColors_1.AppColors.purple}/>
|
|
277
|
+
<react_native_1.Text style={styles.cardTitle}>APPLICATION IDENTITY</react_native_1.Text>
|
|
278
|
+
</react_native_1.View>
|
|
279
|
+
<react_native_1.View style={styles.cardBody}>
|
|
280
|
+
<InfoRow label="Application Name" value={deviceInfo.appName} copyable/>
|
|
281
|
+
<InfoRow label="Bundle / Package ID" value={deviceInfo.bundleId} copyable/>
|
|
282
|
+
<InfoRow label="Version" value={`${deviceInfo.appVersion} (${deviceInfo.buildNumber})`}/>
|
|
283
|
+
<InfoRow label="Environment" value={deviceInfo.isDevice ? 'Physical Hardware Device' : 'Simulator / Emulator'} badge={deviceInfo.isDevice ? 'Physical' : 'Simulator'} badgeColor={deviceInfo.isDevice ? AppColors_1.AppColors.emerald600 : AppColors_1.AppColors.purple}/>
|
|
284
|
+
</react_native_1.View>
|
|
285
|
+
</react_native_1.View>
|
|
286
|
+
</>)}
|
|
287
|
+
|
|
288
|
+
{/* ─── 2. HARDWARE SUB-TAB ─────────────────────────────────────────────── */}
|
|
289
|
+
{activeSubTab === 'hardware' && (<>
|
|
290
|
+
<react_native_1.View style={styles.card}>
|
|
291
|
+
<react_native_1.View style={styles.cardTitleRow}>
|
|
292
|
+
<NetworkIcons_1.CpuIcon size={15} color={AppColors_1.AppColors.purple}/>
|
|
293
|
+
<react_native_1.Text style={styles.cardTitle}>HARDWARE & IDENTIFIERS</react_native_1.Text>
|
|
294
|
+
</react_native_1.View>
|
|
295
|
+
<react_native_1.View style={styles.cardBody}>
|
|
296
|
+
<InfoRow label="Device Model" value={deviceInfo.deviceModel} copyable/>
|
|
297
|
+
<InfoRow label="Platform OS" value={deviceInfo.osVersion}/>
|
|
298
|
+
<InfoRow label="Device ID" value={deviceId} copyable/>
|
|
299
|
+
<InfoRow label="CPU Architecture" value={deviceInfo.arch || nativeMetrics?.cpuAbi || 'arm64'}/>
|
|
300
|
+
{nativeMetrics?.apiLevel !== undefined && (<InfoRow label="Android API Level" value={`API ${nativeMetrics.apiLevel}`}/>)}
|
|
301
|
+
</react_native_1.View>
|
|
302
|
+
</react_native_1.View>
|
|
303
|
+
|
|
304
|
+
{/* Memory / RAM */}
|
|
305
|
+
<react_native_1.View style={styles.card}>
|
|
306
|
+
<react_native_1.View style={styles.cardTitleRow}>
|
|
307
|
+
<NetworkIcons_1.CpuIcon size={15} color={AppColors_1.AppColors.purple}/>
|
|
308
|
+
<react_native_1.Text style={styles.cardTitle}>SYSTEM MEMORY & RAM</react_native_1.Text>
|
|
309
|
+
</react_native_1.View>
|
|
310
|
+
<react_native_1.View style={styles.cardBody}>
|
|
311
|
+
{nativeMetrics?.totalRAM ? (<>
|
|
312
|
+
<InfoRow label="Total RAM" value={(0, helpers_1.formatBytes)(nativeMetrics.totalRAM)}/>
|
|
313
|
+
<InfoRow label="Available Free RAM" value={nativeMetrics.freeRAM ? (0, helpers_1.formatBytes)(nativeMetrics.freeRAM) : '—'} badge={nativeMetrics.isLowMemory ? 'Low Memory' : 'Healthy'} badgeColor={nativeMetrics.isLowMemory ? AppColors_1.AppColors.errorColor : AppColors_1.AppColors.emerald600}/>
|
|
314
|
+
</>) : (<InfoRow label="JS Heap Limit" value={deviceInfo.memoryMb ? `${deviceInfo.memoryMb} MB` : 'Dynamic Runtime'}/>)}
|
|
315
|
+
{nativeMetrics?.residentMemory ? (<InfoRow label="App Resident Memory" value={(0, helpers_1.formatBytes)(nativeMetrics.residentMemory)}/>) : null}
|
|
316
|
+
{nativeMetrics?.nativeHeapAllocated ? (<InfoRow label="Native Heap Allocated" value={(0, helpers_1.formatBytes)(nativeMetrics.nativeHeapAllocated)}/>) : null}
|
|
317
|
+
</react_native_1.View>
|
|
318
|
+
</react_native_1.View>
|
|
319
|
+
|
|
320
|
+
{/* Storage & Power */}
|
|
321
|
+
<react_native_1.View style={styles.card}>
|
|
322
|
+
<react_native_1.View style={styles.cardTitleRow}>
|
|
323
|
+
<NetworkIcons_1.DevicePhoneIcon size={15} color={AppColors_1.AppColors.purple}/>
|
|
324
|
+
<react_native_1.Text style={styles.cardTitle}>STORAGE & BATTERY</react_native_1.Text>
|
|
325
|
+
</react_native_1.View>
|
|
326
|
+
<react_native_1.View style={styles.cardBody}>
|
|
327
|
+
{nativeMetrics?.totalStorage ? (<InfoRow label="Total Storage" value={(0, helpers_1.formatBytes)(nativeMetrics.totalStorage)}/>) : null}
|
|
328
|
+
{nativeMetrics?.freeStorage ? (<InfoRow label="Free Disk Space" value={(0, helpers_1.formatBytes)(nativeMetrics.freeStorage)}/>) : null}
|
|
329
|
+
{nativeMetrics?.batteryPercent !== undefined && (<InfoRow label="Battery Level" value={`${Math.round(nativeMetrics.batteryPercent)}%`} badge={nativeMetrics.isCharging ? 'Charging' : 'Discharging'} badgeColor={nativeMetrics.isCharging ? AppColors_1.AppColors.emerald600 : AppColors_1.AppColors.purple}/>)}
|
|
330
|
+
<InfoRow label="Hardware Type" value={deviceInfo.isDevice ? 'Physical Device' : 'Virtual Simulator'}/>
|
|
331
|
+
</react_native_1.View>
|
|
332
|
+
</react_native_1.View>
|
|
333
|
+
</>)}
|
|
334
|
+
|
|
335
|
+
{/* ─── 3. DISPLAY SUB-TAB ──────────────────────────────────────────────── */}
|
|
336
|
+
{activeSubTab === 'display' && (<react_native_1.View style={styles.card}>
|
|
337
|
+
<react_native_1.View style={styles.cardTitleRow}>
|
|
338
|
+
<NetworkIcons_1.MonitorIcon size={15} color={AppColors_1.AppColors.purple}/>
|
|
339
|
+
<react_native_1.Text style={styles.cardTitle}>DISPLAY & VIEWPORT METRICS</react_native_1.Text>
|
|
340
|
+
</react_native_1.View>
|
|
341
|
+
<react_native_1.View style={styles.cardBody}>
|
|
342
|
+
<InfoRow label="Logical Resolution" value={`${deviceInfo.screenWidth} × ${deviceInfo.screenHeight} dp`} copyable/>
|
|
343
|
+
<InfoRow label="Physical Pixels" value={`${Math.round(deviceInfo.screenWidth * deviceInfo.screenScale)} × ${Math.round(deviceInfo.screenHeight * deviceInfo.screenScale)} px`}/>
|
|
344
|
+
<InfoRow label="Pixel Density Scale" value={`@${deviceInfo.screenScale}x (${Math.round(deviceInfo.screenScale * 160)} dpi)`} badge={`@${deviceInfo.screenScale}x`} badgeColor={AppColors_1.AppColors.purple}/>
|
|
345
|
+
<InfoRow label="Font Scaling Factor" value={`${deviceInfo.screenFontScale}x`}/>
|
|
346
|
+
<InfoRow label="Status Bar Inset" value={`${deviceInfo.statusBarHeight} px`}/>
|
|
347
|
+
<InfoRow label="Aspect Ratio" value={`${(deviceInfo.screenHeight / deviceInfo.screenWidth).toFixed(2)} : 1`}/>
|
|
348
|
+
</react_native_1.View>
|
|
349
|
+
</react_native_1.View>)}
|
|
350
|
+
|
|
351
|
+
{/* ─── 4. RUNTIME SUB-TAB ──────────────────────────────────────────────── */}
|
|
352
|
+
{activeSubTab === 'runtime' && (<>
|
|
353
|
+
<react_native_1.View style={styles.card}>
|
|
354
|
+
<react_native_1.View style={styles.cardTitleRow}>
|
|
355
|
+
<NetworkIcons_1.CodeIcon size={15} color={AppColors_1.AppColors.purple}/>
|
|
356
|
+
<react_native_1.Text style={styles.cardTitle}>JAVASCRIPT & CORE RUNTIME</react_native_1.Text>
|
|
357
|
+
</react_native_1.View>
|
|
358
|
+
<react_native_1.View style={styles.cardBody}>
|
|
359
|
+
<InfoRow label="JS Engine" value={deviceInfo.isHermes ? 'Hermes Bytecode Engine' : 'JavaScriptCore (JSC)'} badge={deviceInfo.isHermes ? 'Hermes' : 'JSC'} badgeColor={deviceInfo.isHermes ? AppColors_1.AppColors.emerald600 : AppColors_1.AppColors.purple}/>
|
|
360
|
+
<InfoRow label="React Native" value={`v${deviceInfo.reactNativeVersion}`} copyable/>
|
|
361
|
+
<InfoRow label="New Architecture" value={deviceInfo.isFabric ? 'Enabled (Fabric C++)' : 'Disabled (Paper)'} badge={deviceInfo.isFabric ? 'Fabric' : 'Paper'} badgeColor={deviceInfo.isFabric ? AppColors_1.AppColors.emerald600 : AppColors_1.AppColors.grayTextWeak}/>
|
|
362
|
+
<InfoRow label="TurboModules" value={deviceInfo.isTurboModule ? 'Active' : 'Disabled'}/>
|
|
363
|
+
<InfoRow label="CPU Architecture" value={deviceInfo.arch || 'arm64'}/>
|
|
364
|
+
</react_native_1.View>
|
|
365
|
+
</react_native_1.View>
|
|
366
|
+
|
|
367
|
+
<react_native_1.View style={styles.card}>
|
|
368
|
+
<react_native_1.View style={styles.cardTitleRow}>
|
|
369
|
+
<react_native_1.Text style={styles.cardTitle}>INTERNATIONALIZATION & LOCALE</react_native_1.Text>
|
|
370
|
+
</react_native_1.View>
|
|
371
|
+
<react_native_1.View style={styles.cardBody}>
|
|
372
|
+
<InfoRow label="Timezone" value={deviceInfo.timeZone || 'UTC'} copyable/>
|
|
373
|
+
<InfoRow label="Locale Identifier" value={deviceInfo.locale || 'en_US'} copyable/>
|
|
374
|
+
</react_native_1.View>
|
|
375
|
+
</react_native_1.View>
|
|
376
|
+
</>)}
|
|
377
|
+
|
|
378
|
+
{/* ─── 5. RAW JSON SUB-TAB ─────────────────────────────────────────────── */}
|
|
379
|
+
{activeSubTab === 'raw' && (<react_native_1.View style={styles.card}>
|
|
380
|
+
<react_native_1.View style={styles.rawHeaderRow}>
|
|
381
|
+
<react_native_1.View style={styles.rawSearchBox}>
|
|
382
|
+
<NetworkIcons_1.SearchIcon size={13} color={AppColors_1.AppColors.grayTextWeak}/>
|
|
383
|
+
<react_native_1.TextInput style={styles.rawSearchInput} value={search} onChangeText={setSearch} placeholder="Filter JSON fields..." placeholderTextColor={AppColors_1.AppColors.grayTextWeak} autoCapitalize="none" autoCorrect={false}/>
|
|
384
|
+
{search.length > 0 && (<TouchableScale_1.default onPress={() => setSearch('')}>
|
|
385
|
+
<NetworkIcons_1.ClearIcon size={14} color={AppColors_1.AppColors.grayTextWeak}/>
|
|
386
|
+
</TouchableScale_1.default>)}
|
|
387
|
+
</react_native_1.View>
|
|
388
|
+
|
|
389
|
+
<TouchableScale_1.default onPress={handleCopyDiagnostics} style={styles.copyDiagnosticsBtn}>
|
|
390
|
+
<NetworkIcons_1.CopyIcon size={12} color={AppColors_1.AppColors.white}/>
|
|
391
|
+
<react_native_1.Text style={styles.copyDiagnosticsText}>Copy All</react_native_1.Text>
|
|
392
|
+
</TouchableScale_1.default>
|
|
393
|
+
</react_native_1.View>
|
|
394
|
+
|
|
395
|
+
<react_native_1.ScrollView horizontal style={styles.rawScroll}>
|
|
396
|
+
<react_native_1.Text style={styles.rawText} selectable>
|
|
397
|
+
{rawReportJson}
|
|
398
|
+
</react_native_1.Text>
|
|
399
|
+
</react_native_1.ScrollView>
|
|
400
|
+
</react_native_1.View>)}
|
|
401
|
+
|
|
402
|
+
<react_native_1.View style={{ height: 40 }}/>
|
|
403
|
+
</react_native_1.ScrollView>
|
|
404
|
+
</react_native_1.View>);
|
|
405
|
+
});
|
|
406
|
+
const styles = react_native_1.StyleSheet.create({
|
|
407
|
+
container: {
|
|
408
|
+
flex: 1,
|
|
409
|
+
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
410
|
+
},
|
|
411
|
+
tabBarWrapper: {
|
|
412
|
+
backgroundColor: AppColors_1.AppColors.contentBg,
|
|
413
|
+
borderBottomWidth: 1,
|
|
414
|
+
borderBottomColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
415
|
+
paddingVertical: 8,
|
|
416
|
+
},
|
|
417
|
+
subTabBarContainer: {
|
|
418
|
+
paddingHorizontal: 12,
|
|
419
|
+
flexDirection: 'row',
|
|
420
|
+
gap: 8,
|
|
421
|
+
alignItems: 'center',
|
|
422
|
+
},
|
|
423
|
+
subTabButton: {
|
|
424
|
+
paddingHorizontal: 14,
|
|
425
|
+
paddingVertical: 7,
|
|
426
|
+
borderRadius: 20,
|
|
427
|
+
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
428
|
+
borderWidth: 1,
|
|
429
|
+
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
430
|
+
},
|
|
431
|
+
subTabButtonActive: {
|
|
432
|
+
backgroundColor: AppColors_1.AppColors.purple,
|
|
433
|
+
borderColor: AppColors_1.AppColors.purple,
|
|
434
|
+
},
|
|
435
|
+
subTabText: {
|
|
436
|
+
fontSize: 12,
|
|
437
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
438
|
+
color: AppColors_1.AppColors.grayText,
|
|
439
|
+
},
|
|
440
|
+
subTabTextActive: {
|
|
441
|
+
color: AppColors_1.AppColors.white,
|
|
442
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
443
|
+
},
|
|
444
|
+
scrollArea: {
|
|
445
|
+
flex: 1,
|
|
446
|
+
},
|
|
447
|
+
contentContainer: {
|
|
448
|
+
padding: 12,
|
|
449
|
+
},
|
|
450
|
+
deviceIdHeroCard: {
|
|
451
|
+
backgroundColor: AppColors_1.AppColors.contentBg,
|
|
452
|
+
borderRadius: 14,
|
|
453
|
+
padding: 14,
|
|
454
|
+
marginBottom: 12,
|
|
455
|
+
borderWidth: 1,
|
|
456
|
+
borderColor: `${AppColors_1.AppColors.purple}30`,
|
|
457
|
+
shadowColor: AppColors_1.AppColors.purple,
|
|
458
|
+
shadowOffset: { width: 0, height: 2 },
|
|
459
|
+
shadowOpacity: 0.06,
|
|
460
|
+
shadowRadius: 6,
|
|
461
|
+
elevation: 2,
|
|
462
|
+
},
|
|
463
|
+
deviceIdHeader: {
|
|
464
|
+
flexDirection: 'row',
|
|
465
|
+
alignItems: 'center',
|
|
466
|
+
justifyContent: 'space-between',
|
|
467
|
+
marginBottom: 8,
|
|
468
|
+
},
|
|
469
|
+
deviceIdBadgeRow: {
|
|
470
|
+
flexDirection: 'row',
|
|
471
|
+
alignItems: 'center',
|
|
472
|
+
gap: 6,
|
|
473
|
+
},
|
|
474
|
+
platformBadge: {
|
|
475
|
+
flexDirection: 'row',
|
|
476
|
+
alignItems: 'center',
|
|
477
|
+
gap: 4,
|
|
478
|
+
backgroundColor: `${AppColors_1.AppColors.purple}14`,
|
|
479
|
+
paddingHorizontal: 8,
|
|
480
|
+
paddingVertical: 4,
|
|
481
|
+
borderRadius: 6,
|
|
482
|
+
borderWidth: 1,
|
|
483
|
+
borderColor: `${AppColors_1.AppColors.purple}30`,
|
|
484
|
+
},
|
|
485
|
+
platformBadgeText: {
|
|
486
|
+
fontSize: 11,
|
|
487
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
488
|
+
color: AppColors_1.AppColors.purple,
|
|
489
|
+
},
|
|
490
|
+
idTypeBadge: {
|
|
491
|
+
flexDirection: 'row',
|
|
492
|
+
alignItems: 'center',
|
|
493
|
+
gap: 4,
|
|
494
|
+
backgroundColor: `${AppColors_1.AppColors.purple}10`,
|
|
495
|
+
paddingHorizontal: 8,
|
|
496
|
+
paddingVertical: 4,
|
|
497
|
+
borderRadius: 6,
|
|
498
|
+
},
|
|
499
|
+
idTypeBadgeText: {
|
|
500
|
+
fontSize: 11,
|
|
501
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
502
|
+
color: AppColors_1.AppColors.purple,
|
|
503
|
+
},
|
|
504
|
+
copyIdPill: {
|
|
505
|
+
flexDirection: 'row',
|
|
506
|
+
alignItems: 'center',
|
|
507
|
+
gap: 4,
|
|
508
|
+
backgroundColor: AppColors_1.AppColors.purple,
|
|
509
|
+
paddingHorizontal: 10,
|
|
510
|
+
paddingVertical: 4,
|
|
511
|
+
borderRadius: 14,
|
|
512
|
+
},
|
|
513
|
+
copyIdPillText: {
|
|
514
|
+
fontSize: 11,
|
|
515
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
516
|
+
color: AppColors_1.AppColors.white,
|
|
517
|
+
},
|
|
518
|
+
deviceIdValue: {
|
|
519
|
+
fontSize: 12,
|
|
520
|
+
fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
|
|
521
|
+
color: AppColors_1.AppColors.black,
|
|
522
|
+
letterSpacing: 0.5,
|
|
523
|
+
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
524
|
+
paddingHorizontal: 10,
|
|
525
|
+
paddingVertical: 6,
|
|
526
|
+
borderRadius: 8,
|
|
527
|
+
},
|
|
528
|
+
headerBanner: {
|
|
529
|
+
flexDirection: 'row',
|
|
530
|
+
alignItems: 'center',
|
|
531
|
+
justifyContent: 'space-between',
|
|
532
|
+
backgroundColor: AppColors_1.AppColors.contentBg,
|
|
533
|
+
borderRadius: 14,
|
|
534
|
+
padding: 14,
|
|
535
|
+
marginBottom: 12,
|
|
536
|
+
borderWidth: 1,
|
|
537
|
+
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
538
|
+
},
|
|
539
|
+
headerLeft: {
|
|
540
|
+
flexDirection: 'row',
|
|
541
|
+
alignItems: 'center',
|
|
542
|
+
gap: 12,
|
|
543
|
+
flex: 1,
|
|
544
|
+
},
|
|
545
|
+
deviceIconBox: {
|
|
546
|
+
width: 44,
|
|
547
|
+
height: 44,
|
|
548
|
+
borderRadius: 12,
|
|
549
|
+
backgroundColor: `${AppColors_1.AppColors.purple}15`,
|
|
550
|
+
alignItems: 'center',
|
|
551
|
+
justifyContent: 'center',
|
|
552
|
+
},
|
|
553
|
+
deviceTitle: {
|
|
554
|
+
fontSize: 15,
|
|
555
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
556
|
+
color: AppColors_1.AppColors.black,
|
|
557
|
+
},
|
|
558
|
+
deviceSubtitle: {
|
|
559
|
+
fontSize: 12,
|
|
560
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
561
|
+
color: AppColors_1.AppColors.grayText,
|
|
562
|
+
marginTop: 2,
|
|
563
|
+
},
|
|
564
|
+
copyDiagnosticsBtn: {
|
|
565
|
+
flexDirection: 'row',
|
|
566
|
+
alignItems: 'center',
|
|
567
|
+
gap: 5,
|
|
568
|
+
backgroundColor: AppColors_1.AppColors.purple,
|
|
569
|
+
paddingHorizontal: 12,
|
|
570
|
+
paddingVertical: 6,
|
|
571
|
+
borderRadius: 8,
|
|
572
|
+
},
|
|
573
|
+
copyDiagnosticsText: {
|
|
574
|
+
fontSize: 12,
|
|
575
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
576
|
+
color: AppColors_1.AppColors.white,
|
|
577
|
+
},
|
|
578
|
+
matrixGrid: {
|
|
579
|
+
flexDirection: 'row',
|
|
580
|
+
flexWrap: 'wrap',
|
|
581
|
+
gap: 8,
|
|
582
|
+
marginBottom: 12,
|
|
583
|
+
},
|
|
584
|
+
matrixCard: {
|
|
585
|
+
flex: 1,
|
|
586
|
+
minWidth: '47%',
|
|
587
|
+
backgroundColor: AppColors_1.AppColors.contentBg,
|
|
588
|
+
borderRadius: 12,
|
|
589
|
+
padding: 12,
|
|
590
|
+
borderWidth: 1,
|
|
591
|
+
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
592
|
+
},
|
|
593
|
+
matrixLabel: {
|
|
594
|
+
fontSize: 10,
|
|
595
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
596
|
+
color: AppColors_1.AppColors.grayTextWeak,
|
|
597
|
+
letterSpacing: 0.5,
|
|
598
|
+
marginBottom: 4,
|
|
599
|
+
},
|
|
600
|
+
matrixValue: {
|
|
601
|
+
fontSize: 14,
|
|
602
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
603
|
+
color: AppColors_1.AppColors.black,
|
|
604
|
+
marginBottom: 2,
|
|
605
|
+
},
|
|
606
|
+
matrixSub: {
|
|
607
|
+
fontSize: 11,
|
|
608
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
609
|
+
color: AppColors_1.AppColors.purple,
|
|
610
|
+
},
|
|
611
|
+
card: {
|
|
612
|
+
backgroundColor: AppColors_1.AppColors.contentBg,
|
|
613
|
+
borderRadius: 14,
|
|
614
|
+
padding: 14,
|
|
615
|
+
marginBottom: 12,
|
|
616
|
+
borderWidth: 1,
|
|
617
|
+
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
618
|
+
},
|
|
619
|
+
cardTitleRow: {
|
|
620
|
+
flexDirection: 'row',
|
|
621
|
+
alignItems: 'center',
|
|
622
|
+
gap: 6,
|
|
623
|
+
marginBottom: 12,
|
|
624
|
+
paddingBottom: 8,
|
|
625
|
+
borderBottomWidth: 1,
|
|
626
|
+
borderBottomColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
627
|
+
},
|
|
628
|
+
cardTitle: {
|
|
629
|
+
fontSize: 12,
|
|
630
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
631
|
+
color: AppColors_1.AppColors.grayTextWeak,
|
|
632
|
+
letterSpacing: 0.5,
|
|
633
|
+
},
|
|
634
|
+
cardBody: {
|
|
635
|
+
gap: 10,
|
|
636
|
+
},
|
|
637
|
+
infoRow: {
|
|
638
|
+
flexDirection: 'row',
|
|
639
|
+
alignItems: 'center',
|
|
640
|
+
justifyContent: 'space-between',
|
|
641
|
+
paddingVertical: 3,
|
|
642
|
+
gap: 8,
|
|
643
|
+
},
|
|
644
|
+
infoLabel: {
|
|
645
|
+
fontSize: 12,
|
|
646
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
647
|
+
color: AppColors_1.AppColors.grayText,
|
|
648
|
+
flexShrink: 0,
|
|
649
|
+
},
|
|
650
|
+
infoValueRow: {
|
|
651
|
+
flexDirection: 'row',
|
|
652
|
+
alignItems: 'center',
|
|
653
|
+
gap: 6,
|
|
654
|
+
flex: 1,
|
|
655
|
+
justifyContent: 'flex-end',
|
|
656
|
+
},
|
|
657
|
+
infoValue: {
|
|
658
|
+
fontSize: 12,
|
|
659
|
+
fontFamily: AppFonts_1.AppFonts.interMedium,
|
|
660
|
+
color: AppColors_1.AppColors.black,
|
|
661
|
+
textAlign: 'right',
|
|
662
|
+
flexShrink: 1,
|
|
663
|
+
},
|
|
664
|
+
inlineBadge: {
|
|
665
|
+
paddingHorizontal: 6,
|
|
666
|
+
paddingVertical: 2,
|
|
667
|
+
borderRadius: 4,
|
|
668
|
+
borderWidth: 1,
|
|
669
|
+
},
|
|
670
|
+
inlineBadgeText: {
|
|
671
|
+
fontSize: 10,
|
|
672
|
+
fontFamily: AppFonts_1.AppFonts.interBold,
|
|
673
|
+
},
|
|
674
|
+
inlineCopyBtn: {
|
|
675
|
+
padding: 3,
|
|
676
|
+
borderRadius: 4,
|
|
677
|
+
backgroundColor: `${AppColors_1.AppColors.purple}14`,
|
|
678
|
+
},
|
|
679
|
+
rawHeaderRow: {
|
|
680
|
+
flexDirection: 'row',
|
|
681
|
+
alignItems: 'center',
|
|
682
|
+
justifyContent: 'space-between',
|
|
683
|
+
gap: 8,
|
|
684
|
+
marginBottom: 12,
|
|
685
|
+
},
|
|
686
|
+
rawSearchBox: {
|
|
687
|
+
flex: 1,
|
|
688
|
+
flexDirection: 'row',
|
|
689
|
+
alignItems: 'center',
|
|
690
|
+
gap: 6,
|
|
691
|
+
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
692
|
+
borderRadius: 8,
|
|
693
|
+
paddingHorizontal: 8,
|
|
694
|
+
paddingVertical: 4,
|
|
695
|
+
borderWidth: 1,
|
|
696
|
+
borderColor: AppColors_1.AppColors.grayBorderSecondary,
|
|
697
|
+
},
|
|
698
|
+
rawSearchInput: {
|
|
699
|
+
flex: 1,
|
|
700
|
+
fontSize: 12,
|
|
701
|
+
fontFamily: AppFonts_1.AppFonts.interRegular,
|
|
702
|
+
color: AppColors_1.AppColors.black,
|
|
703
|
+
paddingVertical: 0,
|
|
704
|
+
},
|
|
705
|
+
rawScroll: {
|
|
706
|
+
backgroundColor: AppColors_1.AppColors.grayBackground,
|
|
707
|
+
borderRadius: 10,
|
|
708
|
+
padding: 10,
|
|
709
|
+
},
|
|
710
|
+
rawText: {
|
|
711
|
+
fontSize: 11,
|
|
712
|
+
fontFamily: react_native_1.Platform.OS === 'ios' ? 'Menlo' : 'monospace',
|
|
713
|
+
color: AppColors_1.AppColors.black,
|
|
714
|
+
lineHeight: 16,
|
|
715
|
+
},
|
|
716
|
+
});
|
|
717
|
+
exports.default = exports.DeviceTab;
|