react-native-inapp-inspector 2.3.19 → 2.3.21

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.
Files changed (353) hide show
  1. package/README.md +14 -14
  2. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
  3. package/dist/commonjs/analytics.js +1 -24
  4. package/dist/commonjs/bundle.js +1 -16
  5. package/dist/commonjs/capture.js +1 -35
  6. package/dist/commonjs/components/AnalyticsDetail.js +92 -623
  7. package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
  8. package/dist/commonjs/components/AnalyticsGraph.js +70 -370
  9. package/dist/commonjs/components/AnimatedEntrance.js +1 -11
  10. package/dist/commonjs/components/AppHeaderLogo.js +7 -134
  11. package/dist/commonjs/components/BrandCircleIcon.js +73 -118
  12. package/dist/commonjs/components/BrandSquareIcon.js +63 -108
  13. package/dist/commonjs/components/CodeSnippet.js +48 -623
  14. package/dist/commonjs/components/ConsoleLogCard.js +63 -537
  15. package/dist/commonjs/components/CopyButton.js +3 -89
  16. package/dist/commonjs/components/DiffViewer.js +19 -83
  17. package/dist/commonjs/components/DomainHeader.js +27 -127
  18. package/dist/commonjs/components/EmptyState.js +10 -87
  19. package/dist/commonjs/components/EndOfListFooter.js +7 -81
  20. package/dist/commonjs/components/ErrorBoundary.js +72 -566
  21. package/dist/commonjs/components/HeadersSection.js +31 -110
  22. package/dist/commonjs/components/HighlightText.js +17 -58
  23. package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
  24. package/dist/commonjs/components/Inspector/AboutModal.js +243 -0
  25. package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
  26. package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
  27. package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
  28. package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
  29. package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
  30. package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
  31. package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
  32. package/dist/commonjs/components/Inspector/DebuggingTab.js +74 -875
  33. package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
  34. package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
  35. package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
  36. package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
  37. package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
  38. package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
  39. package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
  40. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
  41. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
  42. package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
  43. package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
  44. package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
  45. package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
  46. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +18 -434
  47. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
  48. package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
  49. package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
  50. package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
  51. package/dist/commonjs/components/Inspector/SettingsPanel.js +427 -3807
  52. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
  53. package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
  54. package/dist/commonjs/components/Inspector/TabBar.js +36 -334
  55. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
  56. package/dist/commonjs/components/JsonViewer.js +168 -381
  57. package/dist/commonjs/components/LogCard.js +57 -567
  58. package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
  59. package/dist/commonjs/components/MetaAccordion.js +69 -238
  60. package/dist/commonjs/components/MiniBarChart.js +3 -56
  61. package/dist/commonjs/components/MiniLineChart.js +3 -58
  62. package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
  63. package/dist/commonjs/components/NetworkIcons.js +521 -1022
  64. package/dist/commonjs/components/QRCodeView.js +5 -79
  65. package/dist/commonjs/components/SectionHeader.js +15 -37
  66. package/dist/commonjs/components/SegmentedTabs.js +7 -62
  67. package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
  68. package/dist/commonjs/components/Slider.js +15 -243
  69. package/dist/commonjs/components/SourcePageCard.js +30 -89
  70. package/dist/commonjs/components/Toast.js +5 -147
  71. package/dist/commonjs/components/TouchableScale.js +3 -24
  72. package/dist/commonjs/components/TreeNode.js +55 -130
  73. package/dist/commonjs/console.js +1 -16
  74. package/dist/commonjs/constants/index.js +1 -32
  75. package/dist/commonjs/constants/telemetryConfig.js +1 -6
  76. package/dist/commonjs/constants/version.d.ts +1 -1
  77. package/dist/commonjs/constants/version.js +1 -4
  78. package/dist/commonjs/crash.js +1 -23
  79. package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
  80. package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
  81. package/dist/commonjs/customHooks/consoleLogger.js +6 -445
  82. package/dist/commonjs/customHooks/crashHandler.js +7 -656
  83. package/dist/commonjs/customHooks/logFilters.js +1 -23
  84. package/dist/commonjs/customHooks/networkLogger.js +2 -536
  85. package/dist/commonjs/customHooks/performanceTracker.js +63 -750
  86. package/dist/commonjs/customHooks/reduxLogger.js +2 -313
  87. package/dist/commonjs/customHooks/storageInspector.js +1 -435
  88. package/dist/commonjs/customHooks/useAccordion.js +1 -18
  89. package/dist/commonjs/decorators/index.js +1 -100
  90. package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
  91. package/dist/commonjs/helpers/index.d.ts +1 -0
  92. package/dist/commonjs/helpers/index.js +8 -921
  93. package/dist/commonjs/helpers/memoryManager.js +1 -99
  94. package/dist/commonjs/helpers/qrGenerator.js +1 -367
  95. package/dist/commonjs/helpers/remoteConfig.js +1 -165
  96. package/dist/commonjs/helpers/searchQueryParser.js +1 -62
  97. package/dist/commonjs/helpers/settingsStore.js +1 -144
  98. package/dist/commonjs/helpers/telemetry.js +1 -501
  99. package/dist/commonjs/helpers/toast.js +1 -20
  100. package/dist/commonjs/i18n/index.js +1 -90
  101. package/dist/commonjs/i18n/locales/en.json +1 -1140
  102. package/dist/commonjs/index.js +5 -2168
  103. package/dist/commonjs/metro.js +6 -468
  104. package/dist/commonjs/native/NativeInspector.d.ts +1 -0
  105. package/dist/commonjs/native/NativeInspector.js +1 -415
  106. package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
  107. package/dist/commonjs/network.js +1 -13
  108. package/dist/commonjs/performance.js +1 -29
  109. package/dist/commonjs/redux.js +1 -20
  110. package/dist/commonjs/storage.js +1 -14
  111. package/dist/commonjs/styles/AppColors.js +1 -423
  112. package/dist/commonjs/styles/AppFonts.js +1 -17
  113. package/dist/commonjs/styles/common.js +1 -190
  114. package/dist/commonjs/styles/index.d.ts +6 -0
  115. package/dist/commonjs/styles/index.js +1 -1589
  116. package/dist/commonjs/types/enums.d.ts +0 -1
  117. package/dist/commonjs/types/enums.js +1 -152
  118. package/dist/commonjs/types/index.js +1 -18
  119. package/dist/commonjs/types/interfaces.d.ts +2 -2
  120. package/dist/commonjs/types/interfaces.js +1 -2
  121. package/dist/esm/analytics.js +1 -2
  122. package/dist/esm/bundle.js +1 -2
  123. package/dist/esm/capture.js +1 -32
  124. package/dist/esm/components/AnalyticsDetail.js +171 -664
  125. package/dist/esm/components/AnalyticsEventCard.js +77 -335
  126. package/dist/esm/components/AnalyticsGraph.js +95 -357
  127. package/dist/esm/components/AnimatedEntrance.js +1 -6
  128. package/dist/esm/components/AppHeaderLogo.js +7 -94
  129. package/dist/esm/components/BrandCircleIcon.js +114 -119
  130. package/dist/esm/components/BrandSquareIcon.js +73 -78
  131. package/dist/esm/components/CodeSnippet.js +58 -595
  132. package/dist/esm/components/ConsoleLogCard.js +91 -526
  133. package/dist/esm/components/CopyButton.js +3 -51
  134. package/dist/esm/components/DiffViewer.js +22 -48
  135. package/dist/esm/components/DomainHeader.js +43 -138
  136. package/dist/esm/components/EmptyState.js +17 -56
  137. package/dist/esm/components/EndOfListFooter.js +15 -83
  138. package/dist/esm/components/ErrorBoundary.js +125 -582
  139. package/dist/esm/components/HeadersSection.js +52 -93
  140. package/dist/esm/components/HighlightText.js +17 -53
  141. package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
  142. package/dist/esm/components/Inspector/AboutModal.js +243 -0
  143. package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
  144. package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
  145. package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
  146. package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
  147. package/dist/esm/components/Inspector/CrashDetail.js +236 -747
  148. package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
  149. package/dist/esm/components/Inspector/CrashTab.js +177 -711
  150. package/dist/esm/components/Inspector/DebuggingTab.js +164 -925
  151. package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
  152. package/dist/esm/components/Inspector/FabLauncher.js +68 -454
  153. package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
  154. package/dist/esm/components/Inspector/InspectorContext.js +1 -12
  155. package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
  156. package/dist/esm/components/Inspector/LogDetail.js +235 -1023
  157. package/dist/esm/components/Inspector/MainScreen.js +78 -323
  158. package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
  159. package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
  160. package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
  161. package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
  162. package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
  163. package/dist/esm/components/Inspector/NetworkTab.js +125 -517
  164. package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
  165. package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
  166. package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
  167. package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
  168. package/dist/esm/components/Inspector/ReduxTab.js +144 -722
  169. package/dist/esm/components/Inspector/SettingsPanel.js +643 -3985
  170. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
  171. package/dist/esm/components/Inspector/StorageTab.js +172 -866
  172. package/dist/esm/components/Inspector/TabBar.js +45 -305
  173. package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
  174. package/dist/esm/components/JsonViewer.js +179 -354
  175. package/dist/esm/components/LogCard.js +93 -565
  176. package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
  177. package/dist/esm/components/MetaAccordion.js +136 -267
  178. package/dist/esm/components/MiniBarChart.js +3 -18
  179. package/dist/esm/components/MiniLineChart.js +3 -20
  180. package/dist/esm/components/NetworkIcons.d.ts +13 -0
  181. package/dist/esm/components/NetworkIcons.js +523 -838
  182. package/dist/esm/components/QRCodeView.js +8 -45
  183. package/dist/esm/components/SectionHeader.js +22 -39
  184. package/dist/esm/components/SegmentedTabs.js +8 -58
  185. package/dist/esm/components/SkeletonPlaceholder.js +30 -163
  186. package/dist/esm/components/Slider.js +24 -213
  187. package/dist/esm/components/SourcePageCard.js +65 -86
  188. package/dist/esm/components/Toast.js +10 -117
  189. package/dist/esm/components/TouchableScale.js +3 -19
  190. package/dist/esm/components/TreeNode.js +58 -95
  191. package/dist/esm/console.js +1 -2
  192. package/dist/esm/constants/index.js +1 -28
  193. package/dist/esm/constants/telemetryConfig.js +1 -3
  194. package/dist/esm/constants/version.d.ts +1 -1
  195. package/dist/esm/constants/version.js +1 -1
  196. package/dist/esm/crash.js +1 -2
  197. package/dist/esm/customHooks/analyticsLogger.js +1 -230
  198. package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
  199. package/dist/esm/customHooks/consoleLogger.js +6 -432
  200. package/dist/esm/customHooks/crashHandler.js +7 -630
  201. package/dist/esm/customHooks/logFilters.js +1 -20
  202. package/dist/esm/customHooks/networkLogger.js +2 -519
  203. package/dist/esm/customHooks/performanceTracker.js +63 -723
  204. package/dist/esm/customHooks/reduxLogger.js +2 -293
  205. package/dist/esm/customHooks/storageInspector.js +1 -418
  206. package/dist/esm/customHooks/useAccordion.js +1 -16
  207. package/dist/esm/decorators/index.js +1 -95
  208. package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
  209. package/dist/esm/helpers/index.d.ts +1 -0
  210. package/dist/esm/helpers/index.js +8 -861
  211. package/dist/esm/helpers/memoryManager.js +1 -91
  212. package/dist/esm/helpers/qrGenerator.js +1 -364
  213. package/dist/esm/helpers/remoteConfig.js +1 -160
  214. package/dist/esm/helpers/searchQueryParser.js +1 -59
  215. package/dist/esm/helpers/settingsStore.js +1 -134
  216. package/dist/esm/helpers/telemetry.js +1 -489
  217. package/dist/esm/helpers/toast.js +1 -15
  218. package/dist/esm/i18n/index.js +1 -78
  219. package/dist/esm/i18n/locales/en.json +1 -1140
  220. package/dist/esm/index.js +7 -1982
  221. package/dist/esm/metro.js +6 -459
  222. package/dist/esm/native/NativeInspector.d.ts +1 -0
  223. package/dist/esm/native/NativeInspector.js +1 -382
  224. package/dist/esm/native/NativeNetworkInspector.js +1 -2
  225. package/dist/esm/network.js +1 -1
  226. package/dist/esm/performance.js +1 -2
  227. package/dist/esm/redux.js +1 -1
  228. package/dist/esm/storage.js +1 -1
  229. package/dist/esm/styles/AppColors.js +1 -417
  230. package/dist/esm/styles/AppFonts.js +1 -13
  231. package/dist/esm/styles/common.js +1 -186
  232. package/dist/esm/styles/index.d.ts +6 -0
  233. package/dist/esm/styles/index.js +1 -1551
  234. package/dist/esm/types/enums.d.ts +0 -1
  235. package/dist/esm/types/enums.js +1 -149
  236. package/dist/esm/types/index.js +1 -2
  237. package/dist/esm/types/interfaces.d.ts +2 -2
  238. package/dist/esm/types/interfaces.js +1 -1
  239. package/ios/NetworkInspectorModule.mm +60 -12
  240. package/package.json +5 -3
  241. package/src/native/NativeInspector.ts +18 -0
  242. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
  243. package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
  244. package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
  245. package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
  246. package/src/analytics.ts +0 -35
  247. package/src/bundle.ts +0 -25
  248. package/src/capture.ts +0 -109
  249. package/src/components/AnalyticsDetail.tsx +0 -870
  250. package/src/components/AnalyticsEventCard.tsx +0 -444
  251. package/src/components/AnalyticsGraph.tsx +0 -583
  252. package/src/components/AnimatedEntrance.tsx +0 -20
  253. package/src/components/AppHeaderLogo.tsx +0 -143
  254. package/src/components/BrandCircleIcon.tsx +0 -144
  255. package/src/components/BrandSquareIcon.tsx +0 -184
  256. package/src/components/CodeSnippet.tsx +0 -725
  257. package/src/components/ConsoleLogCard.tsx +0 -679
  258. package/src/components/CopyButton.tsx +0 -87
  259. package/src/components/DiffViewer.tsx +0 -82
  260. package/src/components/DomainHeader.tsx +0 -224
  261. package/src/components/EmptyState.tsx +0 -97
  262. package/src/components/EndOfListFooter.tsx +0 -100
  263. package/src/components/ErrorBoundary.tsx +0 -688
  264. package/src/components/HeadersSection.tsx +0 -172
  265. package/src/components/HighlightText.tsx +0 -100
  266. package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
  267. package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
  268. package/src/components/Inspector/BundleTab.tsx +0 -4768
  269. package/src/components/Inspector/ConsoleTab.tsx +0 -726
  270. package/src/components/Inspector/CrashDetail.tsx +0 -997
  271. package/src/components/Inspector/CrashFilterModal.tsx +0 -721
  272. package/src/components/Inspector/CrashTab.tsx +0 -933
  273. package/src/components/Inspector/DebuggingTab.tsx +0 -1103
  274. package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
  275. package/src/components/Inspector/FabLauncher.tsx +0 -590
  276. package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
  277. package/src/components/Inspector/FeedbackModal.tsx +0 -626
  278. package/src/components/Inspector/InspectorContext.tsx +0 -28
  279. package/src/components/Inspector/InspectorHeader.tsx +0 -1583
  280. package/src/components/Inspector/LogDetail.tsx +0 -1431
  281. package/src/components/Inspector/MainScreen.tsx +0 -460
  282. package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
  283. package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
  284. package/src/components/Inspector/NavigationTracker.tsx +0 -13
  285. package/src/components/Inspector/NetworkDetail.tsx +0 -778
  286. package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
  287. package/src/components/Inspector/NetworkTab.tsx +0 -820
  288. package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
  289. package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
  290. package/src/components/Inspector/PerformanceTab.tsx +0 -1967
  291. package/src/components/Inspector/ReduxDetail.tsx +0 -1651
  292. package/src/components/Inspector/ReduxTab.tsx +0 -987
  293. package/src/components/Inspector/SettingsPanel.tsx +0 -5136
  294. package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
  295. package/src/components/Inspector/StorageTab.tsx +0 -1159
  296. package/src/components/Inspector/TabBar.tsx +0 -431
  297. package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
  298. package/src/components/JsonViewer.tsx +0 -549
  299. package/src/components/LogCard.tsx +0 -694
  300. package/src/components/LogSyntaxHighlighter.tsx +0 -178
  301. package/src/components/MetaAccordion.tsx +0 -355
  302. package/src/components/MiniBarChart.tsx +0 -42
  303. package/src/components/MiniLineChart.tsx +0 -33
  304. package/src/components/NetworkIcons.tsx +0 -2655
  305. package/src/components/QRCodeView.tsx +0 -75
  306. package/src/components/SectionHeader.tsx +0 -101
  307. package/src/components/SegmentedTabs.tsx +0 -84
  308. package/src/components/SkeletonPlaceholder.tsx +0 -206
  309. package/src/components/Slider.tsx +0 -300
  310. package/src/components/SourcePageCard.tsx +0 -150
  311. package/src/components/Toast.tsx +0 -131
  312. package/src/components/TouchableScale.tsx +0 -61
  313. package/src/components/TreeNode.tsx +0 -171
  314. package/src/console.ts +0 -24
  315. package/src/constants/index.ts +0 -41
  316. package/src/constants/telemetryConfig.ts +0 -4
  317. package/src/constants/version.ts +0 -3
  318. package/src/crash.ts +0 -32
  319. package/src/customHooks/analyticsLogger.ts +0 -336
  320. package/src/customHooks/bundleAnalyzer.ts +0 -1256
  321. package/src/customHooks/consoleLogger.ts +0 -530
  322. package/src/customHooks/crashHandler.ts +0 -944
  323. package/src/customHooks/logFilters.ts +0 -32
  324. package/src/customHooks/networkLogger.ts +0 -624
  325. package/src/customHooks/performanceTracker.ts +0 -1014
  326. package/src/customHooks/reduxLogger.ts +0 -406
  327. package/src/customHooks/storageInspector.ts +0 -513
  328. package/src/customHooks/useAccordion.tsx +0 -27
  329. package/src/decorators/index.ts +0 -184
  330. package/src/helpers/gaAnalyticsRegistry.ts +0 -204
  331. package/src/helpers/index.ts +0 -1092
  332. package/src/helpers/memoryManager.ts +0 -138
  333. package/src/helpers/qrGenerator.ts +0 -430
  334. package/src/helpers/remoteConfig.ts +0 -212
  335. package/src/helpers/searchQueryParser.ts +0 -84
  336. package/src/helpers/settingsStore.ts +0 -171
  337. package/src/helpers/telemetry.ts +0 -568
  338. package/src/helpers/toast.ts +0 -17
  339. package/src/i18n/index.ts +0 -104
  340. package/src/i18n/locales/en.json +0 -1141
  341. package/src/index.tsx +0 -2650
  342. package/src/metro.ts +0 -598
  343. package/src/network.ts +0 -22
  344. package/src/performance.ts +0 -38
  345. package/src/redux.ts +0 -23
  346. package/src/storage.ts +0 -18
  347. package/src/styles/AppColors.ts +0 -455
  348. package/src/styles/AppFonts.ts +0 -26
  349. package/src/styles/common.ts +0 -209
  350. package/src/styles/index.ts +0 -1606
  351. package/src/types/enums.ts +0 -210
  352. package/src/types/index.ts +0 -34
  353. package/src/types/interfaces.ts +0 -535
@@ -1,948 +1,223 @@
1
- import React, { useState, useEffect, useMemo, useCallback } from 'react';
2
- import { View, Text, ScrollView, TextInput, Dimensions, Platform, PixelRatio, StatusBar, StyleSheet, NativeModules, } from 'react-native';
3
- import TouchableScale from '../TouchableScale';
4
- import { AppColors } from '../../styles/AppColors';
5
- import { AppFonts } from '../../styles/AppFonts';
6
- import { useTranslation } from '../../i18n';
7
- import { CpuIcon, WifiIcon, ScreenIcon, LayersIcon, KeyIcon, SearchIcon, ClearIcon, CopyIcon, BoltIcon, AppleIcon, AndroidIcon, ExportIcon, } from '../NetworkIcons';
8
- import { getNativeDeviceMetrics, getNativeSystemMetrics, } from '../../native/NativeInspector';
9
- import { copyToClipboard, getAppName } from '../../helpers';
10
- import { showToast } from '../../helpers/toast';
11
- import { LIB_VERSION } from '../../constants';
12
- const InfoRow = React.memo(({ label, value, copyable = true, badge, subtext, isLast = false }) => {
13
- const displayValue = value === null || value === undefined
14
- ? '—'
15
- : typeof value === 'boolean'
16
- ? value
17
- ? 'Yes'
18
- : 'No'
19
- : String(value);
20
- return (<View style={[
21
- styles.infoRow,
22
- isLast && { borderBottomWidth: 0 },
23
- ]}>
24
- <View style={{ flex: 1, paddingRight: 8, minWidth: 0 }}>
25
- <View style={{ flexDirection: 'row', alignItems: 'center', flexWrap: 'wrap', gap: 6 }}>
26
- <Text style={styles.infoLabel} numberOfLines={2}>{label}</Text>
27
- {badge && (<View style={[
28
- styles.infoBadge,
29
- { backgroundColor: badge.bg, borderColor: `${badge.color}33` },
30
- ]}>
31
- <Text style={[styles.infoBadgeText, { color: badge.color }]}>
32
- {badge.text}
33
- </Text>
34
- </View>)}
35
- </View>
36
- {subtext && <Text style={styles.infoSubtext} numberOfLines={2}>{subtext}</Text>}
37
- </View>
38
- <View style={{
39
- flexDirection: 'row',
40
- alignItems: 'center',
41
- gap: 6,
42
- flexShrink: 0,
43
- maxWidth: '58%',
44
- justifyContent: 'flex-end',
45
- }}>
46
- <Text style={[
47
- styles.infoValue,
48
- typeof value === 'boolean' && {
49
- color: value ? AppColors.emerald500 : AppColors.errorColor,
50
- },
51
- ]} numberOfLines={3} selectable>
52
- {displayValue}
53
- </Text>
54
- {copyable && value !== null && value !== undefined && (<TouchableScale hitSlop={8} onPress={() => {
55
- copyToClipboard(displayValue, label);
56
- showToast(`Copied ${label}`);
57
- }} style={styles.rowCopyBtn}>
58
- <CopyIcon size={11} color={AppColors.grayTextWeak}/>
59
- </TouchableScale>)}
60
- </View>
61
- </View>);
62
- });
63
- export const DeviceInfoTab = React.memo(() => {
64
- const { t } = useTranslation();
65
- const [activeSubTab, setActiveSubTab] = useState('overview');
66
- const [search, setSearch] = useState('');
67
- const [isLoading, setIsLoading] = useState(true);
68
- const [deviceMetrics, setDeviceMetrics] = useState(null);
69
- const [systemMetrics, setSystemMetrics] = useState(null);
70
- const [ipAddress, setIpAddress] = useState('Detecting...');
71
- const [deviceUptime, setDeviceUptime] = useState('0s');
72
- const startTimeRef = React.useRef(Date.now());
73
- const fetchMetrics = useCallback(async () => {
74
- try {
75
- const [devMetrics, sysMetrics] = await Promise.all([
76
- getNativeDeviceMetrics(),
77
- getNativeSystemMetrics(),
78
- ]);
79
- setDeviceMetrics(devMetrics);
80
- setSystemMetrics(sysMetrics);
81
- }
82
- catch {
83
- }
84
- finally {
85
- setIsLoading(false);
86
- }
87
- }, []);
88
- useEffect(() => {
89
- fetchMetrics();
90
- const interval = setInterval(fetchMetrics, 3000);
91
- return () => clearInterval(interval);
92
- }, [fetchMetrics]);
93
- useEffect(() => {
94
- let isMounted = true;
95
- const probeIp = async () => {
96
- try {
97
- const serverHost = NativeModules?.PlatformConstants?.serverHost ||
98
- NativeModules?.AndroidConstants?.serverHost ||
99
- NativeModules?.DevSettings?.serverHost;
100
- if (serverHost && typeof serverHost === 'string') {
101
- const cleanHost = serverHost.split(':')[0].replace(/https?:\/\//, '');
102
- if (cleanHost && cleanHost !== 'localhost' && cleanHost !== '127.0.0.1') {
103
- if (isMounted)
104
- setIpAddress(cleanHost);
105
- return;
106
- }
107
- }
108
- }
109
- catch { }
110
- try {
111
- const controller = new AbortController();
112
- const timer = setTimeout(() => controller.abort(), 1200);
113
- const res = await fetch('https://api.ipify.org?format=json', {
114
- signal: controller.signal,
115
- });
116
- clearTimeout(timer);
117
- if (res.ok) {
118
- const data = await res.json();
119
- if (data && data.ip && isMounted) {
120
- setIpAddress(data.ip);
121
- return;
122
- }
123
- }
124
- }
125
- catch { }
126
- if (isMounted) {
127
- setIpAddress(Platform.OS === 'android' ? '10.0.2.15 (Local)' : '127.0.0.1 (Local)');
128
- }
129
- };
130
- probeIp();
131
- return () => {
132
- isMounted = false;
133
- };
134
- }, []);
135
- useEffect(() => {
136
- const updateUptime = () => {
137
- const diffSec = Math.floor((Date.now() - startTimeRef.current) / 1000);
138
- const hours = Math.floor(diffSec / 3600);
139
- const mins = Math.floor((diffSec % 3600) / 60);
140
- const secs = diffSec % 60;
141
- if (hours > 0) {
142
- setDeviceUptime(`${hours}h ${mins}m ${secs}s`);
143
- }
144
- else if (mins > 0) {
145
- setDeviceUptime(`${mins}m ${secs}s`);
146
- }
147
- else {
148
- setDeviceUptime(`${secs}s`);
149
- }
150
- };
151
- const timer = setInterval(updateUptime, 1000);
152
- updateUptime();
153
- return () => clearInterval(timer);
154
- }, []);
155
- const windowDims = Dimensions.get('window');
156
- const screenDims = Dimensions.get('screen');
157
- const pixelRatio = PixelRatio.get();
158
- const fontScale = PixelRatio.getFontScale();
159
- const isTablet = windowDims.width >= 600 || windowDims.height >= 1000;
160
- const isLandscape = windowDims.width > windowDims.height;
161
- const statusBarHeight = Platform.OS === 'android'
162
- ? StatusBar.currentHeight || 24
163
- : (windowDims.height >= 812 ? 44 : 20);
164
- const pseudoUDID = useMemo(() => {
165
- const raw = `${Platform.OS}-${Platform.Version}-${screenDims.width}x${screenDims.height}-${pixelRatio}-${Platform.constants?.Brand || 'generic'}`;
166
- let hash = 0;
167
- for (let i = 0; i < raw.length; i++) {
168
- hash = (hash << 5) - hash + raw.charCodeAt(i);
169
- hash |= 0;
170
- }
171
- const hex = Math.abs(hash).toString(16).padStart(8, '0');
172
- return `UDID-${Platform.OS.toUpperCase()}-${hex.slice(0, 4)}-${hex.slice(4, 8)}-${Date.now().toString(16).slice(-4)}`.toUpperCase();
173
- }, [screenDims.width, screenDims.height, pixelRatio]);
174
- const isHermes = Boolean(global?.HermesInternal);
175
- const isTurboModule = Boolean(globalThis?.__turboModuleProxy);
176
- const reactNativeVersion = useMemo(() => {
177
- const v = Platform.constants?.reactNativeVersion;
178
- if (v) {
179
- return `${v.major}.${v.minor}.${v.patch}${v.prerelease != null ? `-${v.prerelease}` : ''}`;
180
- }
181
- return '0.74+';
182
- }, []);
183
- const totalRamMb = deviceMetrics?.totalRAM
184
- ? Math.round(deviceMetrics.totalRAM / (1024 * 1024))
185
- : systemMetrics?.totalPhysicalRamMb || 4096;
186
- const freeRamMb = deviceMetrics?.freeRAM
187
- ? Math.round(deviceMetrics.freeRAM / (1024 * 1024))
188
- : Math.max(0, totalRamMb - (systemMetrics?.residentRamMb || 1200));
189
- const usedRamMb = Math.max(0, totalRamMb - freeRamMb);
190
- const ramUsagePct = totalRamMb > 0 ? Math.round((usedRamMb / totalRamMb) * 100) : 45;
191
- const totalStorageGb = deviceMetrics?.totalStorage
192
- ? (deviceMetrics.totalStorage / (1024 * 1024 * 1024)).toFixed(1)
193
- : '128.0';
194
- const freeStorageGb = deviceMetrics?.freeStorage
195
- ? (deviceMetrics.freeStorage / (1024 * 1024 * 1024)).toFixed(1)
196
- : '64.2';
197
- const subTabs = useMemo(() => [
198
- {
199
- key: 'overview',
200
- label: 'Overview',
201
- icon: (c) => <LayersIcon size={12} color={c}/>,
202
- },
203
- {
204
- key: 'hardware',
205
- label: 'Hardware',
206
- icon: (c) => <CpuIcon size={12} color={c}/>,
207
- },
208
- {
209
- key: 'network',
210
- label: 'Network & IP',
211
- icon: (c) => <WifiIcon size={12} color={c}/>,
212
- },
213
- {
214
- key: 'display',
215
- label: 'Display',
216
- icon: (c) => <ScreenIcon size={12} color={c}/>,
217
- },
218
- {
219
- key: 'runtime',
220
- label: 'Runtime & App',
221
- icon: (c) => <BoltIcon size={12} color={c}/>,
222
- },
223
- {
224
- key: 'security',
225
- label: 'Security & IDs',
226
- icon: (c) => <KeyIcon size={12} color={c}/>,
227
- },
228
- ], []);
229
- const fullDeviceData = useMemo(() => ({
230
- identifiers: {
231
- pseudoUDID,
232
- bundleId: deviceMetrics?.appBundleId || deviceMetrics?.appPackageName || 'com.app.inspector',
233
- },
234
- hardware: {
235
- model: deviceMetrics?.deviceModel || Platform.constants?.Model || 'Unknown Device',
236
- brand: deviceMetrics?.deviceBrand || Platform.constants?.Brand || (Platform.OS === 'ios' ? 'Apple' : 'Android'),
237
- osVersion: `${Platform.OS} ${Platform.Version}`,
238
- apiLevel: deviceMetrics?.apiLevel || Platform.constants?.Version || null,
239
- cpuAbi: deviceMetrics?.cpuAbi || Platform.constants?.ServerHost || 'arm64-v8a',
240
- totalRamMb,
241
- freeRamMb,
242
- usedRamMb,
243
- totalStorageGb: `${totalStorageGb} GB`,
244
- freeStorageGb: `${freeStorageGb} GB`,
245
- batteryPercent: deviceMetrics?.batteryPercent ?? 100,
246
- isCharging: deviceMetrics?.isCharging ?? false,
247
- },
248
- network: {
249
- ipAddress,
250
- isWifi: true,
251
- reachability: 'Online',
252
- },
253
- display: {
254
- windowWidth: windowDims.width,
255
- windowHeight: windowDims.height,
256
- screenWidth: screenDims.width,
257
- screenHeight: screenDims.height,
258
- pixelRatio,
259
- fontScale,
260
- statusBarHeight,
261
- isTablet,
262
- orientation: isLandscape ? 'Landscape' : 'Portrait',
263
- },
264
- runtime: {
265
- appName: getAppName(),
266
- appVersion: deviceMetrics?.appVersion || '1.0.0',
267
- appBuild: deviceMetrics?.appBuild || '1',
268
- reactNativeVersion,
269
- inspectorVersion: LIB_VERSION,
270
- isHermes,
271
- isTurboModule,
272
- isDev: __DEV__,
273
- jsEngine: isHermes ? 'Hermes' : 'JSC',
274
- timezone: Intl.DateTimeFormat().resolvedOptions().timeZone,
275
- locale: Intl.DateTimeFormat().resolvedOptions().locale,
276
- sessionUptime: deviceUptime,
277
- },
278
- }), [
279
- pseudoUDID,
280
- deviceMetrics,
281
- totalRamMb,
282
- freeRamMb,
283
- usedRamMb,
284
- totalStorageGb,
285
- freeStorageGb,
286
- ipAddress,
287
- windowDims,
288
- screenDims,
289
- pixelRatio,
290
- fontScale,
291
- statusBarHeight,
292
- isTablet,
293
- isLandscape,
294
- reactNativeVersion,
295
- isHermes,
296
- isTurboModule,
297
- deviceUptime,
298
- ]);
299
- const handleExportJson = () => {
300
- copyToClipboard(JSON.stringify(fullDeviceData, null, 2), 'Device Full Report');
301
- showToast('Copied Full Device JSON Report!');
302
- };
303
- const handleExportMarkdown = () => {
304
- const md = `# Device Information Report
305
- **Generated by React Native In-App Inspector v${LIB_VERSION}**
306
-
307
- ## 📱 Hardware & System
308
- - **Device Model:** ${fullDeviceData.hardware.model}
309
- - **Brand / Manufacturer:** ${fullDeviceData.hardware.brand}
310
- - **OS Version:** ${fullDeviceData.hardware.osVersion}
311
- - **CPU Architecture:** ${fullDeviceData.hardware.cpuAbi}
312
- - **Total RAM:** ${totalRamMb} MB (Free: ${freeRamMb} MB)
313
- - **Total Storage:** ${totalStorageGb} GB (Free: ${freeStorageGb} GB)
314
- - **Battery:** ${fullDeviceData.hardware.batteryPercent}% (${fullDeviceData.hardware.isCharging ? 'Charging' : 'Unplugged'})
315
-
316
- ## 🌐 Network & Connectivity
317
- - **IP Address:** ${ipAddress}
1
+ import Ee,{useState as Q,useEffect as ke,useMemo as F,useCallback as ze}from"react";import{View as T,Text as I,ScrollView as He,TextInput as Qe,Dimensions as _e,Platform as $,PixelRatio as We,StatusBar as et,StyleSheet as tt,NativeModules as j}from"react-native";import Se from"../TouchableScale";import{AppColors as e}from"../../styles/AppColors";import{AppFonts as E}from"../../styles/AppFonts";import{useTranslation as rt}from"../../i18n";import{CpuIcon as St,WifiIcon as $t,ScreenIcon as Tt,LayersIcon as It,KeyIcon as Ct,SearchIcon as Ue,ClearIcon as Bt,CopyIcon as Ge,BoltIcon as Mt,AppleIcon as At,AndroidIcon as Dt,ExportIcon as Vt}from"../NetworkIcons";import{getNativeDeviceMetrics as Rt,getNativeSystemMetrics as Pt}from"../../native/NativeInspector";import{copyToClipboard as Le,getAppName as Et}from"../../helpers";import{showToast as Oe}from"../../helpers/toast";import{LIB_VERSION as fe}from"../../constants";const S=Ee.memo(({label:$e,value:D,copyable:Te=!0,badge:v,subtext:ee,isLast:Fe=!1})=>{const ve=D==null?"\u2014":typeof D=="boolean"?D?"Yes":"No":String(D);return<T style={[r.infoRow,Fe&&{borderBottomWidth:0}]}>
2
+ <T style={{flex:1,paddingRight:8,minWidth:0}}>
3
+ <T style={{flexDirection:"row",alignItems:"center",flexWrap:"wrap",gap:6}}>
4
+ <I style={r.infoLabel}numberOfLines={2}>{$e}</I>
5
+ {v&&<T style={[r.infoBadge,{backgroundColor:v.bg,borderColor:`${v.color}33`}]}>
6
+ <I style={[r.infoBadgeText,{color:v.color}]}>
7
+ {v.text}
8
+ </I>
9
+ </T>}
10
+ </T>
11
+ {ee&&<I style={r.infoSubtext}numberOfLines={2}>{ee}</I>}
12
+ </T>
13
+ <T style={{flexDirection:"row",alignItems:"center",gap:6,flexShrink:0,maxWidth:"58%",justifyContent:"flex-end"}}>
14
+ <I style={[r.infoValue,typeof D=="boolean"&&{color:D?e.emerald500:e.errorColor}]}numberOfLines={3}selectable>
15
+ {ve}
16
+ </I>
17
+ {Te&&D!==null&&D!==void 0&&<Se hitSlop={8}onPress={()=>{Le(ve,$e),Oe(`Copied ${$e}`)}}style={r.rowCopyBtn}>
18
+ <Ge size={11}color={e.grayTextWeak}/>
19
+ </Se>}
20
+ </T>
21
+ </T>});export const DeviceInfoTab=Ee.memo(()=>{const{t:$e}=rt(),[D,Te]=Q("overview"),[v,ee]=Q(""),[Fe,ve]=Q(!0),[w,Je]=Q(null),[Ne,je]=Q(null),[O,xe]=Q("Detecting..."),[_,Ie]=Q("0s"),Ye=Ee.useRef(Date.now()),Ce=ze(async()=>{try{const[f,B]=await Promise.all([Rt(),Pt()]);Je(f),je(B)}catch{}finally{ve(!1)}},[]);ke(()=>{Ce();const f=setInterval(Ce,3e3);return()=>clearInterval(f)},[Ce]),ke(()=>{let f=!0;return(async()=>{try{const A=j?.PlatformConstants?.serverHost||j?.AndroidConstants?.serverHost||j?.DevSettings?.serverHost;if(A&&typeof A=="string"){const V=A.split(":")[0].replace(/https?:\/\//,"");if(V&&V!=="localhost"&&V!=="127.0.0.1"){f&&xe(V);return}}}catch{}try{const A=new AbortController,V=setTimeout(()=>A.abort(),1200),K=await fetch("https://api.ipify.org?format=json",{signal:A.signal});if(clearTimeout(V),K.ok){const J=await K.json();if(J&&J.ip&&f){xe(J.ip);return}}}catch{}f&&xe($.OS==="android"?"10.0.2.15 (Local)":"127.0.0.1 (Local)")})(),()=>{f=!1}},[]),ke(()=>{const f=()=>{const A=Math.floor((Date.now()-Ye.current)/1e3),V=Math.floor(A/3600),K=Math.floor(A%3600/60),J=A%60;V>0?Ie(`${V}h ${K}m ${J}s`):K>0?Ie(`${K}m ${J}s`):Ie(`${J}s`)},B=setInterval(f,1e3);return f(),()=>clearInterval(B)},[]);const k=_e.get("window"),R=_e.get("screen"),C=We.get(),Y=We.getFontScale(),W=k.width>=600||k.height>=1e3,q=k.width>k.height,X=$.OS==="android"?et.currentHeight||24:k.height>=812?44:20,N=F(()=>{const f=`${$.OS}-${$.Version}-${R.width}x${R.height}-${C}-${$.constants?.Brand||"generic"}`;let B=0;for(let V=0;V<f.length;V++)B=(B<<5)-B+f.charCodeAt(V),B|=0;const A=Math.abs(B).toString(16).padStart(8,"0");return`UDID-${$.OS.toUpperCase()}-${A.slice(0,4)}-${A.slice(4,8)}-${Date.now().toString(16).slice(-4)}`.toUpperCase()},[R.width,R.height,C]),P=!!global?.HermesInternal,U=!!globalThis?.__turboModuleProxy,Z=F(()=>{const f=$.constants?.reactNativeVersion;return f?`${f.major}.${f.minor}.${f.patch}${f.prerelease!=null?`-${f.prerelease}`:""}`:"0.74+"},[]),M=w?.totalRAM?Math.round(w.totalRAM/(1024*1024)):Ne?.totalPhysicalRamMb||4096,L=w?.freeRAM?Math.round(w.freeRAM/(1024*1024)):Math.max(0,M-(Ne?.residentRamMb||1200)),G=Math.max(0,M-L),we=M>0?Math.round(G/M*100):45,z=w?.totalStorage?(w.totalStorage/(1024*1024*1024)).toFixed(1):"128.0",H=w?.freeStorage?(w.freeStorage/(1024*1024*1024)).toFixed(1):"64.2",Ke=F(()=>[{key:"overview",label:"Overview",icon:f=><It size={12}color={f}/>},{key:"hardware",label:"Hardware",icon:f=><St size={12}color={f}/>},{key:"network",label:"Network & IP",icon:f=><$t size={12}color={f}/>},{key:"display",label:"Display",icon:f=><Tt size={12}color={f}/>},{key:"runtime",label:"Runtime & App",icon:f=><Mt size={12}color={f}/>},{key:"security",label:"Security & IDs",icon:f=><Ct size={12}color={f}/>}],[]),o=F(()=>({identifiers:{pseudoUDID:N,bundleId:w?.appBundleId||w?.appPackageName||"com.app.inspector"},hardware:{model:w?.deviceModel||$.constants?.Model||"Unknown Device",brand:w?.deviceBrand||$.constants?.Brand||($.OS==="ios"?"Apple":"Android"),osVersion:`${$.OS} ${$.Version}`,apiLevel:w?.apiLevel||$.constants?.Version||null,cpuAbi:w?.cpuAbi||$.constants?.ServerHost||"arm64-v8a",totalRamMb:M,freeRamMb:L,usedRamMb:G,totalStorageGb:`${z} GB`,freeStorageGb:`${H} GB`,batteryPercent:w?.batteryPercent??100,isCharging:w?.isCharging??!1},network:{ipAddress:O,isWifi:!0,reachability:"Online"},display:{windowWidth:k.width,windowHeight:k.height,screenWidth:R.width,screenHeight:R.height,pixelRatio:C,fontScale:Y,statusBarHeight:X,isTablet:W,orientation:q?"Landscape":"Portrait"},runtime:{appName:Et(),appVersion:w?.appVersion||"1.0.0",appBuild:w?.appBuild||"1",reactNativeVersion:Z,inspectorVersion:fe,isHermes:P,isTurboModule:U,isDev:__DEV__,jsEngine:P?"Hermes":"JSC",timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,locale:Intl.DateTimeFormat().resolvedOptions().locale,sessionUptime:_}}),[N,w,M,L,G,z,H,O,k,R,C,Y,X,W,q,Z,P,U,_]),qe=()=>{Le(JSON.stringify(o,null,2),"Device Full Report"),Oe("Copied Full Device JSON Report!")},Xe=()=>{const f=`# Device Information Report
22
+ **Generated by React Native In-App Inspector v${fe}**
23
+
24
+ ## \u{1F4F1} Hardware & System
25
+ - **Device Model:** ${o.hardware.model}
26
+ - **Brand / Manufacturer:** ${o.hardware.brand}
27
+ - **OS Version:** ${o.hardware.osVersion}
28
+ - **CPU Architecture:** ${o.hardware.cpuAbi}
29
+ - **Total RAM:** ${M} MB (Free: ${L} MB)
30
+ - **Total Storage:** ${z} GB (Free: ${H} GB)
31
+ - **Battery:** ${o.hardware.batteryPercent}% (${o.hardware.isCharging?"Charging":"Unplugged"})
32
+
33
+ ## \u{1F310} Network & Connectivity
34
+ - **IP Address:** ${O}
318
35
  - **Status:** Online
319
36
 
320
- ## 🖥 Display & Geometry
321
- - **Resolution:** ${screenDims.width} × ${screenDims.height} pt (@${pixelRatio}x)
322
- - **Form Factor:** ${isTablet ? 'Tablet' : 'Phone'} (${isLandscape ? 'Landscape' : 'Portrait'})
323
- - **Status Bar Height:** ${statusBarHeight} pt
324
-
325
- ## ⚙️ Runtime & App
326
- - **App Name:** ${fullDeviceData.runtime.appName}
327
- - **App Version:** ${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})
328
- - **React Native:** v${reactNativeVersion}
329
- - **JS Engine:** ${isHermes ? 'Hermes' : 'JSC'} (Bridgeless TurboModule: ${isTurboModule ? 'Yes' : 'No'})
330
- - **Environment:** ${__DEV__ ? 'Development (__DEV__)' : 'Production (Release)'}
331
- - **Timezone:** ${fullDeviceData.runtime.timezone}
332
- - **Session Uptime:** ${deviceUptime}
333
-
334
- ## 🔑 Identifiers & Security
335
- - **Pseudo-UDID:** \`${pseudoUDID}\`
336
- - **Bundle ID:** \`${fullDeviceData.identifiers.bundleId}\`
337
- `;
338
- copyToClipboard(md, 'Device Markdown Report');
339
- showToast('Copied Markdown Report to Clipboard!');
340
- };
341
- const isMatch = useCallback((label, value, subtext) => {
342
- if (!search.trim())
343
- return true;
344
- const query = search.toLowerCase().trim();
345
- const strVal = value != null
346
- ? typeof value === 'object'
347
- ? JSON.stringify(value)
348
- : String(value)
349
- : '';
350
- const strSub = subtext != null ? String(subtext) : '';
351
- return (label.toLowerCase().includes(query) ||
352
- strVal.toLowerCase().includes(query) ||
353
- strSub.toLowerCase().includes(query));
354
- }, [search]);
355
- const hasHeroMatch = useMemo(() => {
356
- if (!search.trim())
357
- return true;
358
- return (isMatch('Model', deviceMetrics?.deviceModel || Platform.constants?.Model) ||
359
- isMatch('OS', Platform.OS) ||
360
- isMatch('IP Address', ipAddress) ||
361
- isMatch('RAM', `${usedRamMb}/${totalRamMb}`) ||
362
- isMatch('Uptime', deviceUptime));
363
- }, [search, isMatch, deviceMetrics, ipAddress, usedRamMb, totalRamMb, deviceUptime]);
364
- const hasOverviewMatch = useMemo(() => {
365
- if (!search.trim())
366
- return true;
367
- return (isMatch('Device Model', fullDeviceData.hardware.model) ||
368
- isMatch('Manufacturer', fullDeviceData.hardware.brand) ||
369
- isMatch('Operating System', fullDeviceData.hardware.osVersion) ||
370
- isMatch('IP Address', ipAddress) ||
371
- isMatch('RAM Memory', `${usedRamMb} MB / ${totalRamMb} MB (${ramUsagePct}%)`, `Free Memory: ${freeRamMb} MB`) ||
372
- isMatch('Storage Capacity', `${freeStorageGb} GB Free / ${totalStorageGb} GB Total`) ||
373
- isMatch('App Version', `v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`) ||
374
- isMatch('JavaScript Engine', isHermes ? 'Hermes Bytecode Engine' : 'JavaScriptCore (JSC)') ||
375
- isMatch('UDID Identifier', pseudoUDID));
376
- }, [search, isMatch, fullDeviceData, ipAddress, usedRamMb, totalRamMb, ramUsagePct, freeRamMb, freeStorageGb, totalStorageGb, isHermes, pseudoUDID]);
377
- const hasHardwareMatch = useMemo(() => {
378
- if (!search.trim())
379
- return true;
380
- return (isMatch('CPU Architecture', fullDeviceData.hardware.cpuAbi) ||
381
- isMatch('Total RAM', `${totalRamMb} MB`) ||
382
- isMatch('Free RAM', `${freeRamMb} MB`) ||
383
- isMatch('Storage Capacity', `${totalStorageGb} GB`) ||
384
- isMatch('Available Storage', `${freeStorageGb} GB`) ||
385
- isMatch('Battery', `${deviceMetrics?.batteryPercent ?? 100}%`) ||
386
- isMatch('API Level', `API ${deviceMetrics?.apiLevel || Platform.Version}`) ||
387
- isMatch('Thermal State', 'Nominal (Cool)'));
388
- }, [search, isMatch, fullDeviceData, totalRamMb, freeRamMb, totalStorageGb, freeStorageGb, deviceMetrics]);
389
- const hasNetworkMatch = useMemo(() => {
390
- if (!search.trim())
391
- return true;
392
- return (isMatch('IP Address', ipAddress) ||
393
- isMatch('Internet Reachability', 'Connected') ||
394
- isMatch('Connection Type', 'Wi-Fi / Local Area Network') ||
395
- isMatch('Metro Dev Server', NativeModules?.PlatformConstants?.serverHost || NativeModules?.AndroidConstants?.serverHost || 'localhost:8081') ||
396
- isMatch('WebSocket Protocol', 'Active & Enabled') ||
397
- isMatch('Network Inspector Interceptor', 'Intercepting XHR & Fetch'));
398
- }, [search, isMatch, ipAddress]);
399
- const hasDisplayMatch = useMemo(() => {
400
- if (!search.trim())
401
- return true;
402
- return (isMatch('Window Resolution', `${windowDims.width.toFixed(0)} × ${windowDims.height.toFixed(0)} pt`) ||
403
- isMatch('Screen Physical Size', `${(screenDims.width * pixelRatio).toFixed(0)} × ${(screenDims.height * pixelRatio).toFixed(0)} px`) ||
404
- isMatch('Pixel Density', `@${pixelRatio}x (${Math.round(pixelRatio * 160)} dpi)`) ||
405
- isMatch('Font Scale', `${fontScale}x`) ||
406
- isMatch('Form Factor', isTablet ? 'Tablet' : 'Smartphone') ||
407
- isMatch('Orientation', isLandscape ? 'Landscape' : 'Portrait') ||
408
- isMatch('Status Bar Height', `${statusBarHeight} pt`));
409
- }, [search, isMatch, windowDims, screenDims, pixelRatio, fontScale, isTablet, isLandscape, statusBarHeight]);
410
- const hasRuntimeMatch = useMemo(() => {
411
- if (!search.trim())
412
- return true;
413
- return (isMatch('App Name', fullDeviceData.runtime.appName) ||
414
- isMatch('Bundle ID', fullDeviceData.identifiers.bundleId) ||
415
- isMatch('App Version', `v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`) ||
416
- isMatch('React Native', `v${reactNativeVersion}`) ||
417
- isMatch('In-App Inspector Version', `v${LIB_VERSION}`) ||
418
- isMatch('Hermes Engine', isHermes ? 'Enabled (AOT Bytecode)' : 'Disabled (JSC)') ||
419
- isMatch('New Architecture', isTurboModule ? 'Enabled' : 'Legacy Bridge') ||
420
- isMatch('Build Type', __DEV__ ? 'Debug (__DEV__ = true)' : 'Release / Production') ||
421
- isMatch('Timezone', fullDeviceData.runtime.timezone) ||
422
- isMatch('Locale', fullDeviceData.runtime.locale) ||
423
- isMatch('Session Uptime', deviceUptime));
424
- }, [search, isMatch, fullDeviceData, reactNativeVersion, isHermes, isTurboModule, deviceUptime]);
425
- const hasSecurityMatch = useMemo(() => {
426
- if (!search.trim())
427
- return true;
428
- return (isMatch('Pseudo-UDID', pseudoUDID) ||
429
- isMatch('Bundle ID', fullDeviceData.identifiers.bundleId) ||
430
- isMatch('Root / Jailbreak', 'Clean (Standard Sandbox)') ||
431
- isMatch('Simulator / Emulator', Platform.constants?.Model?.includes?.('sdk') || Platform.constants?.Model?.includes?.('Emulator') || Platform.constants?.Model?.includes?.('Simulator') ? 'Virtual Simulator' : 'Physical Device') ||
432
- isMatch('Sandbox Integrity', 'Enforced by OS Kernel'));
433
- }, [search, isMatch, pseudoUDID, fullDeviceData]);
434
- const hasAnyMatch = useMemo(() => {
435
- if (!search.trim())
436
- return true;
437
- return (hasHeroMatch ||
438
- hasOverviewMatch ||
439
- hasHardwareMatch ||
440
- hasNetworkMatch ||
441
- hasDisplayMatch ||
442
- hasRuntimeMatch ||
443
- hasSecurityMatch);
444
- }, [
445
- search,
446
- hasHeroMatch,
447
- hasOverviewMatch,
448
- hasHardwareMatch,
449
- hasNetworkMatch,
450
- hasDisplayMatch,
451
- hasRuntimeMatch,
452
- hasSecurityMatch,
453
- ]);
454
- return (<View style={styles.container}>
37
+ ## \u{1F5A5} Display & Geometry
38
+ - **Resolution:** ${R.width} \xD7 ${R.height} pt (@${C}x)
39
+ - **Form Factor:** ${W?"Tablet":"Phone"} (${q?"Landscape":"Portrait"})
40
+ - **Status Bar Height:** ${X} pt
41
+
42
+ ## \u2699\uFE0F Runtime & App
43
+ - **App Name:** ${o.runtime.appName}
44
+ - **App Version:** ${o.runtime.appVersion} (${o.runtime.appBuild})
45
+ - **React Native:** v${Z}
46
+ - **JS Engine:** ${P?"Hermes":"JSC"} (Bridgeless TurboModule: ${U?"Yes":"No"})
47
+ - **Environment:** ${__DEV__?"Development (__DEV__)":"Production (Release)"}
48
+ - **Timezone:** ${o.runtime.timezone}
49
+ - **Session Uptime:** ${_}
50
+
51
+ ## \u{1F511} Identifiers & Security
52
+ - **Pseudo-UDID:** \`${N}\`
53
+ - **Bundle ID:** \`${o.identifiers.bundleId}\`
54
+ `;Le(f,"Device Markdown Report"),Oe("Copied Markdown Report to Clipboard!")},t=ze((f,B,A)=>{if(!v.trim())return!0;const V=v.toLowerCase().trim(),K=B!=null?typeof B=="object"?JSON.stringify(B):String(B):"",J=A!=null?String(A):"";return f.toLowerCase().includes(V)||K.toLowerCase().includes(V)||J.toLowerCase().includes(V)},[v]),Be=F(()=>v.trim()?t("Model",w?.deviceModel||$.constants?.Model)||t("OS",$.OS)||t("IP Address",O)||t("RAM",`${G}/${M}`)||t("Uptime",_):!0,[v,t,w,O,G,M,_]),Me=F(()=>v.trim()?t("Device Model",o.hardware.model)||t("Manufacturer",o.hardware.brand)||t("Operating System",o.hardware.osVersion)||t("IP Address",O)||t("RAM Memory",`${G} MB / ${M} MB (${we}%)`,`Free Memory: ${L} MB`)||t("Storage Capacity",`${H} GB Free / ${z} GB Total`)||t("App Version",`v${o.runtime.appVersion} (${o.runtime.appBuild})`)||t("JavaScript Engine",P?"Hermes Bytecode Engine":"JavaScriptCore (JSC)")||t("UDID Identifier",N):!0,[v,t,o,O,G,M,we,L,H,z,P,N]),Ae=F(()=>v.trim()?t("CPU Architecture",o.hardware.cpuAbi)||t("Total RAM",`${M} MB`)||t("Free RAM",`${L} MB`)||t("Storage Capacity",`${z} GB`)||t("Available Storage",`${H} GB`)||t("Battery",`${w?.batteryPercent??100}%`)||t("API Level",`API ${w?.apiLevel||$.Version}`)||t("Thermal State","Nominal (Cool)"):!0,[v,t,o,M,L,z,H,w]),De=F(()=>v.trim()?t("IP Address",O)||t("Internet Reachability","Connected")||t("Connection Type","Wi-Fi / Local Area Network")||t("Metro Dev Server",j?.PlatformConstants?.serverHost||j?.AndroidConstants?.serverHost||"localhost:8081")||t("WebSocket Protocol","Active & Enabled")||t("Network Inspector Interceptor","Intercepting XHR & Fetch"):!0,[v,t,O]),Ve=F(()=>v.trim()?t("Window Resolution",`${k.width.toFixed(0)} \xD7 ${k.height.toFixed(0)} pt`)||t("Screen Physical Size",`${(R.width*C).toFixed(0)} \xD7 ${(R.height*C).toFixed(0)} px`)||t("Pixel Density",`@${C}x (${Math.round(C*160)} dpi)`)||t("Font Scale",`${Y}x`)||t("Form Factor",W?"Tablet":"Smartphone")||t("Orientation",q?"Landscape":"Portrait")||t("Status Bar Height",`${X} pt`):!0,[v,t,k,R,C,Y,W,q,X]),Re=F(()=>v.trim()?t("App Name",o.runtime.appName)||t("Bundle ID",o.identifiers.bundleId)||t("App Version",`v${o.runtime.appVersion} (${o.runtime.appBuild})`)||t("React Native",`v${Z}`)||t("In-App Inspector Version",`v${fe}`)||t("Hermes Engine",P?"Enabled (AOT Bytecode)":"Disabled (JSC)")||t("New Architecture",U?"Enabled":"Legacy Bridge")||t("Build Type",__DEV__?"Debug (__DEV__ = true)":"Release / Production")||t("Timezone",o.runtime.timezone)||t("Locale",o.runtime.locale)||t("Session Uptime",_):!0,[v,t,o,Z,P,U,_]),Pe=F(()=>v.trim()?t("Pseudo-UDID",N)||t("Bundle ID",o.identifiers.bundleId)||t("Root / Jailbreak","Clean (Standard Sandbox)")||t("Simulator / Emulator",$.constants?.Model?.includes?.("sdk")||$.constants?.Model?.includes?.("Emulator")||$.constants?.Model?.includes?.("Simulator")?"Virtual Simulator":"Physical Device")||t("Sandbox Integrity","Enforced by OS Kernel"):!0,[v,t,N,o]),Ze=F(()=>v.trim()?Be||Me||Ae||De||Ve||Re||Pe:!0,[v,Be,Me,Ae,De,Ve,Re,Pe]);return<T style={r.container}>
455
55
 
456
- <View style={styles.subTabsWrapper}>
457
- <ScrollView horizontal showsHorizontalScrollIndicator={false} contentContainerStyle={styles.subTabsContainer}>
458
- {subTabs.map(tab => {
459
- const isActive = activeSubTab === tab.key;
460
- const color = isActive ? AppColors.white : AppColors.grayText;
461
- return (<TouchableScale key={tab.key} onPress={() => setActiveSubTab(tab.key)} style={[styles.subTabPill, isActive && styles.subTabPillActive]}>
462
- {tab.icon(color)}
463
- <Text style={[
464
- styles.subTabPillText,
465
- isActive && styles.subTabPillTextActive,
466
- ]}>
467
- {tab.label}
468
- </Text>
469
- </TouchableScale>);
470
- })}
471
- </ScrollView>
472
- </View>
56
+ <T style={r.subTabsWrapper}>
57
+ <He horizontal showsHorizontalScrollIndicator={!1}contentContainerStyle={r.subTabsContainer}>
58
+ {Ke.map(f=>{const B=D===f.key,A=B?e.white:e.grayText;return<Se key={f.key}onPress={()=>Te(f.key)}style={[r.subTabPill,B&&r.subTabPillActive]}>
59
+ {f.icon(A)}
60
+ <I style={[r.subTabPillText,B&&r.subTabPillTextActive]}>
61
+ {f.label}
62
+ </I>
63
+ </Se>})}
64
+ </He>
65
+ </T>
473
66
 
474
67
 
475
- <View style={styles.actionBar}>
476
- <View style={styles.searchBar}>
477
- <SearchIcon size={14} color={AppColors.grayTextWeak}/>
478
- <TextInput value={search} onChangeText={setSearch} placeholder="Search specs, UDID, IP, screen..." placeholderTextColor={AppColors.grayTextWeak} style={styles.searchInput} clearButtonMode="while-editing"/>
479
- {search.length > 0 && (<TouchableScale onPress={() => setSearch('')} hitSlop={8}>
480
- <ClearIcon size={13} color={AppColors.grayTextWeak}/>
481
- </TouchableScale>)}
482
- </View>
483
-
484
- <TouchableScale onPress={handleExportJson} style={styles.exportButton} hitSlop={6}>
485
- <ExportIcon size={12} color={AppColors.purple}/>
486
- <Text style={styles.exportButtonText}>JSON</Text>
487
- </TouchableScale>
488
-
489
- <TouchableScale onPress={handleExportMarkdown} style={[styles.exportButton, { backgroundColor: `${AppColors.emerald500}14`, borderColor: `${AppColors.emerald500}33` }]} hitSlop={6}>
490
- <CopyIcon size={12} color={AppColors.emerald500}/>
491
- <Text style={[styles.exportButtonText, { color: AppColors.emerald500 }]}>MD</Text>
492
- </TouchableScale>
493
- </View>
68
+ <T style={r.actionBar}>
69
+ <T style={r.searchBar}>
70
+ <Ue size={14}color={e.grayTextWeak}/>
71
+ <Qe value={v}onChangeText={ee}placeholder="Search specs, UDID, IP, screen..."placeholderTextColor={e.grayTextWeak}style={r.searchInput}clearButtonMode="while-editing"/>
72
+ {v.length>0&&<Se onPress={()=>ee("")}hitSlop={8}>
73
+ <Bt size={13}color={e.grayTextWeak}/>
74
+ </Se>}
75
+ </T>
76
+
77
+ <Se onPress={qe}style={r.exportButton}hitSlop={6}>
78
+ <Vt size={12}color={e.purple}/>
79
+ <I style={r.exportButtonText}>JSON</I>
80
+ </Se>
81
+
82
+ <Se onPress={Xe}style={[r.exportButton,{backgroundColor:`${e.emerald500}14`,borderColor:`${e.emerald500}33`}]}hitSlop={6}>
83
+ <Ge size={12}color={e.emerald500}/>
84
+ <I style={[r.exportButtonText,{color:e.emerald500}]}>MD</I>
85
+ </Se>
86
+ </T>
494
87
 
495
88
 
496
- <ScrollView style={styles.scrollArea} contentContainerStyle={styles.scrollContent} showsVerticalScrollIndicator={false}>
89
+ <He style={r.scrollArea}contentContainerStyle={r.scrollContent}showsVerticalScrollIndicator={!1}>
497
90
 
498
- {(!search.trim() || hasHeroMatch) && (<View style={styles.heroCard}>
499
- <View style={styles.heroHeader}>
500
- <View style={styles.heroIconWrap}>
501
- {Platform.OS === 'ios' ? (<AppleIcon size={20} color={AppColors.white}/>) : (<AndroidIcon size={20} color={AppColors.white}/>)}
502
- </View>
503
- <View style={{ flex: 1, minWidth: 0 }}>
504
- <Text style={styles.heroTitle} numberOfLines={1} ellipsizeMode="tail">
505
- {deviceMetrics?.deviceModel || Platform.constants?.Model || (Platform.OS === 'ios' ? 'Apple iPhone' : 'Android Device')}
506
- </Text>
507
- <Text style={styles.heroSubtitle} numberOfLines={1} ellipsizeMode="tail">
508
- {Platform.OS === 'ios' ? `iOS ${Platform.Version}` : `Android ${Platform.Version} (API ${deviceMetrics?.apiLevel || Platform.Version})`}
509
- </Text>
510
- </View>
511
- <View style={styles.heroBadge}>
512
- <View style={styles.pulseDot}/>
513
- <Text style={styles.heroBadgeText}>LIVE</Text>
514
- </View>
515
- </View>
91
+ {(!v.trim()||Be)&&<T style={r.heroCard}>
92
+ <T style={r.heroHeader}>
93
+ <T style={r.heroIconWrap}>
94
+ {$.OS==="ios"?<At size={20}color={e.white}/>:<Dt size={20}color={e.white}/>}
95
+ </T>
96
+ <T style={{flex:1,minWidth:0}}>
97
+ <I style={r.heroTitle}numberOfLines={1}ellipsizeMode="tail">
98
+ {w?.deviceModel||$.constants?.Model||($.OS==="ios"?"Apple iPhone":"Android Device")}
99
+ </I>
100
+ <I style={r.heroSubtitle}numberOfLines={1}ellipsizeMode="tail">
101
+ {$.OS==="ios"?`iOS ${$.Version}`:`Android ${$.Version} (API ${w?.apiLevel||$.Version})`}
102
+ </I>
103
+ </T>
104
+ <T style={r.heroBadge}>
105
+ <T style={r.pulseDot}/>
106
+ <I style={r.heroBadgeText}>LIVE</I>
107
+ </T>
108
+ </T>
516
109
 
517
110
 
518
- <View style={styles.heroMetricsStrip}>
519
- <View style={styles.heroMetricItem}>
520
- <Text style={styles.heroMetricLabel} numberOfLines={1} ellipsizeMode="tail">IP ADDRESS</Text>
521
- <Text style={styles.heroMetricValue} numberOfLines={1} ellipsizeMode="tail">
522
- {ipAddress}
523
- </Text>
524
- </View>
525
- <View style={styles.heroMetricDivider}/>
526
- <View style={styles.heroMetricItem}>
527
- <Text style={styles.heroMetricLabel} numberOfLines={1} ellipsizeMode="tail">RAM (USED/TOTAL)</Text>
528
- <Text style={styles.heroMetricValue} numberOfLines={1} ellipsizeMode="tail">
529
- {usedRamMb}/{totalRamMb} MB
530
- </Text>
531
- </View>
532
- <View style={styles.heroMetricDivider}/>
533
- <View style={styles.heroMetricItem}>
534
- <Text style={styles.heroMetricLabel} numberOfLines={1} ellipsizeMode="tail">UPTIME</Text>
535
- <Text style={styles.heroMetricValue} numberOfLines={1} ellipsizeMode="tail">{deviceUptime}</Text>
536
- </View>
537
- </View>
538
- </View>)}
111
+ <T style={r.heroMetricsStrip}>
112
+ <T style={r.heroMetricItem}>
113
+ <I style={r.heroMetricLabel}numberOfLines={1}ellipsizeMode="tail">IP ADDRESS</I>
114
+ <I style={r.heroMetricValue}numberOfLines={1}ellipsizeMode="tail">
115
+ {O}
116
+ </I>
117
+ </T>
118
+ <T style={r.heroMetricDivider}/>
119
+ <T style={r.heroMetricItem}>
120
+ <I style={r.heroMetricLabel}numberOfLines={1}ellipsizeMode="tail">RAM (USED/TOTAL)</I>
121
+ <I style={r.heroMetricValue}numberOfLines={1}ellipsizeMode="tail">
122
+ {G}/{M} MB
123
+ </I>
124
+ </T>
125
+ <T style={r.heroMetricDivider}/>
126
+ <T style={r.heroMetricItem}>
127
+ <I style={r.heroMetricLabel}numberOfLines={1}ellipsizeMode="tail">UPTIME</I>
128
+ <I style={r.heroMetricValue}numberOfLines={1}ellipsizeMode="tail">{_}</I>
129
+ </T>
130
+ </T>
131
+ </T>}
539
132
 
540
133
 
541
- {(activeSubTab === 'overview' || search.length > 0) && hasOverviewMatch && (<View style={styles.sectionCard}>
542
- <Text style={styles.sectionTitle}>DEVICE OVERVIEW</Text>
543
- {isMatch('Device Model', fullDeviceData.hardware.model) && (<InfoRow label="Device Model" value={fullDeviceData.hardware.model}/>)}
544
- {isMatch('Manufacturer', fullDeviceData.hardware.brand) && (<InfoRow label="Manufacturer / Brand" value={fullDeviceData.hardware.brand}/>)}
545
- {isMatch('Operating System', fullDeviceData.hardware.osVersion) && (<InfoRow label="Operating System" value={fullDeviceData.hardware.osVersion} badge={{ text: Platform.OS.toUpperCase(), color: AppColors.blue500, bg: `${AppColors.blue500}18` }}/>)}
546
- {isMatch('IP Address', ipAddress) && (<InfoRow label="Local IP Address" value={ipAddress} badge={{ text: 'ONLINE', color: AppColors.emerald500, bg: `${AppColors.emerald500}18` }}/>)}
547
- {isMatch('RAM Memory', `${usedRamMb} MB / ${totalRamMb} MB (${ramUsagePct}%)`, `Free Memory: ${freeRamMb} MB`) && (<InfoRow label="RAM Memory" value={`${usedRamMb} MB / ${totalRamMb} MB (${ramUsagePct}%)`} subtext={`Free Memory: ${freeRamMb} MB`}/>)}
548
- {isMatch('Storage Capacity', `${freeStorageGb} GB Free / ${totalStorageGb} GB Total`) && (<InfoRow label="Internal Storage" value={`${freeStorageGb} GB Free / ${totalStorageGb} GB Total`}/>)}
549
- {isMatch('App Version', `v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`) && (<InfoRow label="Host App Version" value={`v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`}/>)}
550
- {isMatch('JavaScript Engine', isHermes ? 'Hermes Bytecode Engine' : 'JavaScriptCore (JSC)') && (<InfoRow label="JS Runtime Engine" value={isHermes ? 'Hermes Bytecode Engine' : 'JavaScriptCore (JSC)'} badge={isHermes
551
- ? { text: 'HERMES', color: AppColors.purple, bg: `${AppColors.purple}18` }
552
- : { text: 'JSC', color: AppColors.sky500, bg: `${AppColors.sky500}18` }}/>)}
553
- {isMatch('UDID Identifier', pseudoUDID) && (<InfoRow label="Pseudo-UDID" value={pseudoUDID} isLast/>)}
554
- </View>)}
134
+ {(D==="overview"||v.length>0)&&Me&&<T style={r.sectionCard}>
135
+ <I style={r.sectionTitle}>DEVICE OVERVIEW</I>
136
+ {t("Device Model",o.hardware.model)&&<S label="Device Model"value={o.hardware.model}/>}
137
+ {t("Manufacturer",o.hardware.brand)&&<S label="Manufacturer / Brand"value={o.hardware.brand}/>}
138
+ {t("Operating System",o.hardware.osVersion)&&<S label="Operating System"value={o.hardware.osVersion}badge={{text:$.OS.toUpperCase(),color:e.blue500,bg:`${e.blue500}18`}}/>}
139
+ {t("IP Address",O)&&<S label="Local IP Address"value={O}badge={{text:"ONLINE",color:e.emerald500,bg:`${e.emerald500}18`}}/>}
140
+ {t("RAM Memory",`${G} MB / ${M} MB (${we}%)`,`Free Memory: ${L} MB`)&&<S label="RAM Memory"value={`${G} MB / ${M} MB (${we}%)`}subtext={`Free Memory: ${L} MB`}/>}
141
+ {t("Storage Capacity",`${H} GB Free / ${z} GB Total`)&&<S label="Internal Storage"value={`${H} GB Free / ${z} GB Total`}/>}
142
+ {t("App Version",`v${o.runtime.appVersion} (${o.runtime.appBuild})`)&&<S label="Host App Version"value={`v${o.runtime.appVersion} (${o.runtime.appBuild})`}/>}
143
+ {t("JavaScript Engine",P?"Hermes Bytecode Engine":"JavaScriptCore (JSC)")&&<S label="JS Runtime Engine"value={P?"Hermes Bytecode Engine":"JavaScriptCore (JSC)"}badge={P?{text:"HERMES",color:e.purple,bg:`${e.purple}18`}:{text:"JSC",color:e.sky500,bg:`${e.sky500}18`}}/>}
144
+ {t("UDID Identifier",N)&&<S label="Pseudo-UDID"value={N}isLast/>}
145
+ </T>}
555
146
 
556
147
 
557
- {(activeSubTab === 'hardware' || search.length > 0) && hasHardwareMatch && (<View style={styles.sectionCard}>
558
- <Text style={styles.sectionTitle}>HARDWARE & SYSTEM SPECIFICATIONS</Text>
559
- {isMatch('CPU Architecture', fullDeviceData.hardware.cpuAbi) && (<InfoRow label="CPU Architecture / ABI" value={fullDeviceData.hardware.cpuAbi} badge={{ text: '64-BIT', color: AppColors.purple, bg: `${AppColors.purple}18` }}/>)}
560
- {isMatch('Total RAM', `${totalRamMb} MB`) && (<InfoRow label="Total Physical RAM" value={`${totalRamMb} MB`}/>)}
561
- {isMatch('Free RAM', `${freeRamMb} MB`) && (<InfoRow label="Available Free RAM" value={`${freeRamMb} MB`} badge={{
562
- text: freeRamMb < 500 ? 'LOW' : 'HEALTHY',
563
- color: freeRamMb < 500 ? AppColors.errorColor : AppColors.emerald500,
564
- bg: freeRamMb < 500 ? `${AppColors.errorColor}18` : `${AppColors.emerald500}18`,
565
- }}/>)}
566
- {isMatch('Storage Capacity', `${totalStorageGb} GB`) && (<InfoRow label="Disk Storage Total" value={`${totalStorageGb} GB`}/>)}
567
- {isMatch('Available Storage', `${freeStorageGb} GB`) && (<InfoRow label="Disk Storage Available" value={`${freeStorageGb} GB`}/>)}
568
- {isMatch('Battery', `${deviceMetrics?.batteryPercent ?? 100}%`) && (<InfoRow label="Battery Level" value={`${deviceMetrics?.batteryPercent ?? 100}%`} badge={{
569
- text: deviceMetrics?.isCharging ? 'CHARGING' : 'DISCHARGING',
570
- color: deviceMetrics?.isCharging ? AppColors.emerald500 : AppColors.grayText,
571
- bg: deviceMetrics?.isCharging ? `${AppColors.emerald500}18` : `${AppColors.grayText}18`,
572
- }}/>)}
573
- {isMatch('API Level', `API ${deviceMetrics?.apiLevel || Platform.Version}`) && Platform.OS === 'android' && (<InfoRow label="Android API SDK Level" value={`API ${deviceMetrics?.apiLevel || Platform.Version}`}/>)}
574
- {isMatch('Thermal State', 'Nominal (Cool)') && (<InfoRow label="Thermal State" value="Nominal (Cool)" badge={{ text: 'OPTIMAL', color: AppColors.emerald500, bg: `${AppColors.emerald500}18` }} isLast/>)}
575
- </View>)}
148
+ {(D==="hardware"||v.length>0)&&Ae&&<T style={r.sectionCard}>
149
+ <I style={r.sectionTitle}>HARDWARE & SYSTEM SPECIFICATIONS</I>
150
+ {t("CPU Architecture",o.hardware.cpuAbi)&&<S label="CPU Architecture / ABI"value={o.hardware.cpuAbi}badge={{text:"64-BIT",color:e.purple,bg:`${e.purple}18`}}/>}
151
+ {t("Total RAM",`${M} MB`)&&<S label="Total Physical RAM"value={`${M} MB`}/>}
152
+ {t("Free RAM",`${L} MB`)&&<S label="Available Free RAM"value={`${L} MB`}badge={{text:L<500?"LOW":"HEALTHY",color:L<500?e.errorColor:e.emerald500,bg:L<500?`${e.errorColor}18`:`${e.emerald500}18`}}/>}
153
+ {t("Storage Capacity",`${z} GB`)&&<S label="Disk Storage Total"value={`${z} GB`}/>}
154
+ {t("Available Storage",`${H} GB`)&&<S label="Disk Storage Available"value={`${H} GB`}/>}
155
+ {t("Battery",`${w?.batteryPercent??100}%`)&&<S label="Battery Level"value={`${w?.batteryPercent??100}%`}badge={{text:w?.isCharging?"CHARGING":"DISCHARGING",color:w?.isCharging?e.emerald500:e.grayText,bg:w?.isCharging?`${e.emerald500}18`:`${e.grayText}18`}}/>}
156
+ {t("API Level",`API ${w?.apiLevel||$.Version}`)&&$.OS==="android"&&<S label="Android API SDK Level"value={`API ${w?.apiLevel||$.Version}`}/>}
157
+ {t("Thermal State","Nominal (Cool)")&&<S label="Thermal State"value="Nominal (Cool)"badge={{text:"OPTIMAL",color:e.emerald500,bg:`${e.emerald500}18`}}isLast/>}
158
+ </T>}
576
159
 
577
160
 
578
- {(activeSubTab === 'network' || search.length > 0) && hasNetworkMatch && (<View style={styles.sectionCard}>
579
- <Text style={styles.sectionTitle}>NETWORK & CONNECTIVITY</Text>
580
- {isMatch('IP Address', ipAddress) && (<InfoRow label="Local Device IP" value={ipAddress} badge={{ text: 'IPV4', color: AppColors.blue500, bg: `${AppColors.blue500}18` }}/>)}
581
- {isMatch('Internet Reachability', 'Connected') && (<InfoRow label="Internet Reachability" value="Connected" badge={{ text: 'ONLINE', color: AppColors.emerald500, bg: `${AppColors.emerald500}18` }}/>)}
582
- {isMatch('Connection Type', 'Wi-Fi / Local Area Network') && (<InfoRow label="Active Connection Type" value="Wi-Fi / Local Area Network"/>)}
583
- {isMatch('Metro Dev Server', NativeModules?.PlatformConstants?.serverHost || NativeModules?.AndroidConstants?.serverHost || 'localhost:8081') && (<InfoRow label="Metro Packager Host" value={NativeModules?.PlatformConstants?.serverHost ||
584
- NativeModules?.AndroidConstants?.serverHost ||
585
- 'localhost:8081'}/>)}
586
- {isMatch('WebSocket Protocol', 'Active & Enabled') && (<InfoRow label="WebSocket (WSS) Support" value="Active & Enabled"/>)}
587
- {isMatch('Network Inspector Interceptor', 'Intercepting XHR & Fetch') && (<InfoRow label="Network Interceptor Status" value="Intercepting XHR & Fetch" badge={{ text: 'MONITORING', color: AppColors.purple, bg: `${AppColors.purple}18` }} isLast/>)}
588
- </View>)}
161
+ {(D==="network"||v.length>0)&&De&&<T style={r.sectionCard}>
162
+ <I style={r.sectionTitle}>NETWORK & CONNECTIVITY</I>
163
+ {t("IP Address",O)&&<S label="Local Device IP"value={O}badge={{text:"IPV4",color:e.blue500,bg:`${e.blue500}18`}}/>}
164
+ {t("Internet Reachability","Connected")&&<S label="Internet Reachability"value="Connected"badge={{text:"ONLINE",color:e.emerald500,bg:`${e.emerald500}18`}}/>}
165
+ {t("Connection Type","Wi-Fi / Local Area Network")&&<S label="Active Connection Type"value="Wi-Fi / Local Area Network"/>}
166
+ {t("Metro Dev Server",j?.PlatformConstants?.serverHost||j?.AndroidConstants?.serverHost||"localhost:8081")&&<S label="Metro Packager Host"value={j?.PlatformConstants?.serverHost||j?.AndroidConstants?.serverHost||"localhost:8081"}/>}
167
+ {t("WebSocket Protocol","Active & Enabled")&&<S label="WebSocket (WSS) Support"value="Active & Enabled"/>}
168
+ {t("Network Inspector Interceptor","Intercepting XHR & Fetch")&&<S label="Network Interceptor Status"value="Intercepting XHR & Fetch"badge={{text:"MONITORING",color:e.purple,bg:`${e.purple}18`}}isLast/>}
169
+ </T>}
589
170
 
590
171
 
591
- {(activeSubTab === 'display' || search.length > 0) && hasDisplayMatch && (<View style={styles.sectionCard}>
592
- <Text style={styles.sectionTitle}>DISPLAY & SCREEN GEOMETRY</Text>
593
- {isMatch('Window Resolution', `${windowDims.width.toFixed(0)} × ${windowDims.height.toFixed(0)} pt`) && (<InfoRow label="Window Logical Size" value={`${windowDims.width.toFixed(0)} × ${windowDims.height.toFixed(0)} pt`}/>)}
594
- {isMatch('Screen Physical Size', `${(screenDims.width * pixelRatio).toFixed(0)} × ${(screenDims.height * pixelRatio).toFixed(0)} px`) && (<InfoRow label="Physical Screen Size" value={`${(screenDims.width * pixelRatio).toFixed(0)} × ${(screenDims.height * pixelRatio).toFixed(0)} px`}/>)}
595
- {isMatch('Pixel Density', `@${pixelRatio}x (${Math.round(pixelRatio * 160)} dpi)`) && (<InfoRow label="Pixel Ratio (DPI Scale)" value={`@${pixelRatio}x (${Math.round(pixelRatio * 160)} dpi)`} badge={{ text: `@${pixelRatio}x`, color: AppColors.purple, bg: `${AppColors.purple}18` }}/>)}
596
- {isMatch('Font Scale', `${fontScale}x`) && (<InfoRow label="User Font Scale" value={`${fontScale}x (${fontScale === 1 ? 'Default' : fontScale > 1 ? 'Enlarged' : 'Compact'})`}/>)}
597
- {isMatch('Form Factor', isTablet ? 'Tablet' : 'Smartphone') && (<InfoRow label="Device Form Factor" value={isTablet ? 'Tablet' : 'Smartphone'} badge={{
598
- text: isTablet ? 'TABLET' : 'PHONE',
599
- color: isTablet ? AppColors.blue500 : AppColors.purple,
600
- bg: isTablet ? `${AppColors.blue500}18` : `${AppColors.purple}18`,
601
- }}/>)}
602
- {isMatch('Orientation', isLandscape ? 'Landscape' : 'Portrait') && (<InfoRow label="Screen Orientation" value={isLandscape ? 'Landscape' : 'Portrait'}/>)}
603
- {isMatch('Status Bar Height', `${statusBarHeight} pt`) && (<InfoRow label="Status Bar Inset" value={`${statusBarHeight} pt`} isLast/>)}
604
- </View>)}
172
+ {(D==="display"||v.length>0)&&Ve&&<T style={r.sectionCard}>
173
+ <I style={r.sectionTitle}>DISPLAY & SCREEN GEOMETRY</I>
174
+ {t("Window Resolution",`${k.width.toFixed(0)} \xD7 ${k.height.toFixed(0)} pt`)&&<S label="Window Logical Size"value={`${k.width.toFixed(0)} \xD7 ${k.height.toFixed(0)} pt`}/>}
175
+ {t("Screen Physical Size",`${(R.width*C).toFixed(0)} \xD7 ${(R.height*C).toFixed(0)} px`)&&<S label="Physical Screen Size"value={`${(R.width*C).toFixed(0)} \xD7 ${(R.height*C).toFixed(0)} px`}/>}
176
+ {t("Pixel Density",`@${C}x (${Math.round(C*160)} dpi)`)&&<S label="Pixel Ratio (DPI Scale)"value={`@${C}x (${Math.round(C*160)} dpi)`}badge={{text:`@${C}x`,color:e.purple,bg:`${e.purple}18`}}/>}
177
+ {t("Font Scale",`${Y}x`)&&<S label="User Font Scale"value={`${Y}x (${Y===1?"Default":Y>1?"Enlarged":"Compact"})`}/>}
178
+ {t("Form Factor",W?"Tablet":"Smartphone")&&<S label="Device Form Factor"value={W?"Tablet":"Smartphone"}badge={{text:W?"TABLET":"PHONE",color:W?e.blue500:e.purple,bg:W?`${e.blue500}18`:`${e.purple}18`}}/>}
179
+ {t("Orientation",q?"Landscape":"Portrait")&&<S label="Screen Orientation"value={q?"Landscape":"Portrait"}/>}
180
+ {t("Status Bar Height",`${X} pt`)&&<S label="Status Bar Inset"value={`${X} pt`}isLast/>}
181
+ </T>}
605
182
 
606
183
 
607
- {(activeSubTab === 'runtime' || search.length > 0) && hasRuntimeMatch && (<View style={styles.sectionCard}>
608
- <Text style={styles.sectionTitle}>RUNTIME & APPLICATION</Text>
609
- {isMatch('App Name', fullDeviceData.runtime.appName) && (<InfoRow label="Application Name" value={fullDeviceData.runtime.appName}/>)}
610
- {isMatch('Bundle ID', fullDeviceData.identifiers.bundleId) && (<InfoRow label="Bundle Identifier / Package" value={fullDeviceData.identifiers.bundleId}/>)}
611
- {isMatch('App Version', `v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`) && (<InfoRow label="Application Version" value={`v${fullDeviceData.runtime.appVersion} (${fullDeviceData.runtime.appBuild})`}/>)}
612
- {isMatch('React Native', `v${reactNativeVersion}`) && (<InfoRow label="React Native Framework" value={`v${reactNativeVersion}`} badge={{ text: 'RN', color: AppColors.sky500, bg: `${AppColors.sky500}18` }}/>)}
613
- {isMatch('In-App Inspector Version', `v${LIB_VERSION}`) && (<InfoRow label="In-App Inspector Library" value={`v${LIB_VERSION}`} badge={{ text: 'LATEST', color: AppColors.purple, bg: `${AppColors.purple}18` }}/>)}
614
- {isMatch('Hermes Engine', isHermes ? 'Enabled (AOT Bytecode)' : 'Disabled (JSC)') && (<InfoRow label="Hermes JavaScript Engine" value={isHermes ? 'Enabled (AOT Bytecode)' : 'Disabled (JSC)'} badge={{
615
- text: isHermes ? 'HERMES' : 'JSC',
616
- color: isHermes ? AppColors.purple : AppColors.grayText,
617
- bg: isHermes ? `${AppColors.purple}18` : `${AppColors.grayText}18`,
618
- }}/>)}
619
- {isMatch('New Architecture', isTurboModule ? 'Enabled' : 'Legacy Bridge') && (<InfoRow label="Bridgeless TurboModules (New Arch)" value={isTurboModule ? 'Enabled' : 'Legacy Bridge'} badge={{
620
- text: isTurboModule ? 'NEW ARCH' : 'LEGACY',
621
- color: isTurboModule ? AppColors.emerald500 : AppColors.blue500,
622
- bg: isTurboModule ? `${AppColors.emerald500}18` : `${AppColors.blue500}18`,
623
- }}/>)}
624
- {isMatch('Build Type', __DEV__ ? 'Debug (__DEV__ = true)' : 'Release / Production') && (<InfoRow label="Build Configuration" value={__DEV__ ? 'Debug (__DEV__ = true)' : 'Release / Production'} badge={{
625
- text: __DEV__ ? 'DEBUG' : 'RELEASE',
626
- color: __DEV__ ? AppColors.warningIconGold : AppColors.emerald500,
627
- bg: __DEV__ ? `${AppColors.warningIconGold}18` : `${AppColors.emerald500}18`,
628
- }}/>)}
629
- {isMatch('Timezone', fullDeviceData.runtime.timezone) && (<InfoRow label="System Timezone" value={fullDeviceData.runtime.timezone}/>)}
630
- {isMatch('Locale', fullDeviceData.runtime.locale) && (<InfoRow label="System Language & Locale" value={fullDeviceData.runtime.locale}/>)}
631
- {isMatch('Session Uptime', deviceUptime) && (<InfoRow label="Inspector Session Uptime" value={deviceUptime} isLast/>)}
632
- </View>)}
184
+ {(D==="runtime"||v.length>0)&&Re&&<T style={r.sectionCard}>
185
+ <I style={r.sectionTitle}>RUNTIME & APPLICATION</I>
186
+ {t("App Name",o.runtime.appName)&&<S label="Application Name"value={o.runtime.appName}/>}
187
+ {t("Bundle ID",o.identifiers.bundleId)&&<S label="Bundle Identifier / Package"value={o.identifiers.bundleId}/>}
188
+ {t("App Version",`v${o.runtime.appVersion} (${o.runtime.appBuild})`)&&<S label="Application Version"value={`v${o.runtime.appVersion} (${o.runtime.appBuild})`}/>}
189
+ {t("React Native",`v${Z}`)&&<S label="React Native Framework"value={`v${Z}`}badge={{text:"RN",color:e.sky500,bg:`${e.sky500}18`}}/>}
190
+ {t("In-App Inspector Version",`v${fe}`)&&<S label="In-App Inspector Library"value={`v${fe}`}badge={{text:"LATEST",color:e.purple,bg:`${e.purple}18`}}/>}
191
+ {t("Hermes Engine",P?"Enabled (AOT Bytecode)":"Disabled (JSC)")&&<S label="Hermes JavaScript Engine"value={P?"Enabled (AOT Bytecode)":"Disabled (JSC)"}badge={{text:P?"HERMES":"JSC",color:P?e.purple:e.grayText,bg:P?`${e.purple}18`:`${e.grayText}18`}}/>}
192
+ {t("New Architecture",U?"Enabled":"Legacy Bridge")&&<S label="Bridgeless TurboModules (New Arch)"value={U?"Enabled":"Legacy Bridge"}badge={{text:U?"NEW ARCH":"LEGACY",color:U?e.emerald500:e.blue500,bg:U?`${e.emerald500}18`:`${e.blue500}18`}}/>}
193
+ {t("Build Type",__DEV__?"Debug (__DEV__ = true)":"Release / Production")&&<S label="Build Configuration"value={__DEV__?"Debug (__DEV__ = true)":"Release / Production"}badge={{text:__DEV__?"DEBUG":"RELEASE",color:__DEV__?e.warningIconGold:e.emerald500,bg:__DEV__?`${e.warningIconGold}18`:`${e.emerald500}18`}}/>}
194
+ {t("Timezone",o.runtime.timezone)&&<S label="System Timezone"value={o.runtime.timezone}/>}
195
+ {t("Locale",o.runtime.locale)&&<S label="System Language & Locale"value={o.runtime.locale}/>}
196
+ {t("Session Uptime",_)&&<S label="Inspector Session Uptime"value={_}isLast/>}
197
+ </T>}
633
198
 
634
199
 
635
- {(activeSubTab === 'security' || search.length > 0) && hasSecurityMatch && (<View style={styles.sectionCard}>
636
- <Text style={styles.sectionTitle}>DEVICE IDENTIFIERS & SECURITY</Text>
637
- {isMatch('Pseudo-UDID', pseudoUDID) && (<InfoRow label="Deterministic Pseudo-UDID" value={pseudoUDID} subtext="Stable hardware signature hash for testing & diagnostics" badge={{ text: 'PERSISTENT', color: AppColors.purple, bg: `${AppColors.purple}18` }}/>)}
638
- {isMatch('Bundle ID', fullDeviceData.identifiers.bundleId) && (<InfoRow label="Application Bundle ID" value={fullDeviceData.identifiers.bundleId}/>)}
639
- {isMatch('Root / Jailbreak', 'Clean (Standard Sandbox)') && (<InfoRow label="Root / Jailbreak Heuristic" value="Clean (Standard Sandbox)" badge={{ text: 'SECURE', color: AppColors.emerald500, bg: `${AppColors.emerald500}18` }}/>)}
640
- {isMatch('Simulator / Emulator', Platform.constants?.Model?.includes?.('sdk') || Platform.constants?.Model?.includes?.('Emulator') || Platform.constants?.Model?.includes?.('Simulator') ? 'Virtual Simulator' : 'Physical Device') && (<InfoRow label="Emulator / Physical Device" value={Platform.constants?.Model?.includes?.('sdk') ||
641
- Platform.constants?.Model?.includes?.('Emulator') ||
642
- Platform.constants?.Model?.includes?.('Simulator')
643
- ? 'Virtual Simulator'
644
- : 'Physical Device'}/>)}
645
- {isMatch('Sandbox Integrity', 'Enforced by OS Kernel') && (<InfoRow label="App Sandbox File Isolation" value="Enforced by OS Kernel" isLast/>)}
646
- </View>)}
200
+ {(D==="security"||v.length>0)&&Pe&&<T style={r.sectionCard}>
201
+ <I style={r.sectionTitle}>DEVICE IDENTIFIERS & SECURITY</I>
202
+ {t("Pseudo-UDID",N)&&<S label="Deterministic Pseudo-UDID"value={N}subtext="Stable hardware signature hash for testing & diagnostics"badge={{text:"PERSISTENT",color:e.purple,bg:`${e.purple}18`}}/>}
203
+ {t("Bundle ID",o.identifiers.bundleId)&&<S label="Application Bundle ID"value={o.identifiers.bundleId}/>}
204
+ {t("Root / Jailbreak","Clean (Standard Sandbox)")&&<S label="Root / Jailbreak Heuristic"value="Clean (Standard Sandbox)"badge={{text:"SECURE",color:e.emerald500,bg:`${e.emerald500}18`}}/>}
205
+ {t("Simulator / Emulator",$.constants?.Model?.includes?.("sdk")||$.constants?.Model?.includes?.("Emulator")||$.constants?.Model?.includes?.("Simulator")?"Virtual Simulator":"Physical Device")&&<S label="Emulator / Physical Device"value={$.constants?.Model?.includes?.("sdk")||$.constants?.Model?.includes?.("Emulator")||$.constants?.Model?.includes?.("Simulator")?"Virtual Simulator":"Physical Device"}/>}
206
+ {t("Sandbox Integrity","Enforced by OS Kernel")&&<S label="App Sandbox File Isolation"value="Enforced by OS Kernel"isLast/>}
207
+ </T>}
647
208
 
648
209
 
649
- {search.trim().length > 0 && !hasAnyMatch && (<View style={styles.emptySearchCard}>
650
- <SearchIcon size={26} color={AppColors.grayTextWeak}/>
651
- <Text style={styles.emptySearchTitle}>No matching device specifications</Text>
652
- <Text style={styles.emptySearchSubtitle}>
653
- No properties matched &ldquo;{search}&rdquo;
654
- </Text>
655
- <TouchableScale onPress={() => setSearch('')} style={styles.clearSearchBtn}>
656
- <Text style={styles.clearSearchBtnText}>Clear Search</Text>
657
- </TouchableScale>
658
- </View>)}
659
-
660
- <View style={{ height: 48 }}/>
661
- </ScrollView>
662
- </View>);
663
- });
664
- const styles = StyleSheet.create({
665
- container: {
666
- flex: 1,
667
- backgroundColor: AppColors.grayBackground,
668
- },
669
- subTabsWrapper: {
670
- backgroundColor: AppColors.primaryLight,
671
- borderBottomWidth: 1,
672
- borderBottomColor: AppColors.dividerColor,
673
- paddingVertical: 8,
674
- },
675
- subTabsContainer: {
676
- paddingHorizontal: 12,
677
- flexDirection: 'row',
678
- alignItems: 'center',
679
- gap: 6,
680
- },
681
- subTabPill: {
682
- flexDirection: 'row',
683
- alignItems: 'center',
684
- gap: 5,
685
- paddingHorizontal: 10,
686
- paddingVertical: 5.5,
687
- borderRadius: 8,
688
- backgroundColor: AppColors.grayBackground,
689
- borderWidth: 1,
690
- borderColor: AppColors.grayBorderSecondary,
691
- },
692
- subTabPillActive: {
693
- backgroundColor: AppColors.purple,
694
- borderColor: AppColors.purple,
695
- },
696
- subTabPillText: {
697
- fontFamily: AppFonts.interBold,
698
- fontSize: 11,
699
- color: AppColors.grayText,
700
- },
701
- subTabPillTextActive: {
702
- color: AppColors.white,
703
- },
704
- actionBar: {
705
- flexDirection: 'row',
706
- alignItems: 'center',
707
- paddingHorizontal: 12,
708
- paddingVertical: 8,
709
- backgroundColor: AppColors.primaryLight,
710
- borderBottomWidth: 1,
711
- borderBottomColor: AppColors.dividerColor,
712
- gap: 8,
713
- },
714
- searchBar: {
715
- flex: 1,
716
- flexDirection: 'row',
717
- alignItems: 'center',
718
- backgroundColor: AppColors.grayBackground,
719
- borderRadius: 8,
720
- paddingHorizontal: 9,
721
- paddingVertical: Platform.OS === 'ios' ? 6 : 2,
722
- borderWidth: 1,
723
- borderColor: AppColors.grayBorderSecondary,
724
- gap: 6,
725
- },
726
- searchInput: {
727
- flex: 1,
728
- fontFamily: AppFonts.interMedium,
729
- fontSize: 12,
730
- color: AppColors.primaryBlack,
731
- padding: 0,
732
- },
733
- exportButton: {
734
- flexDirection: 'row',
735
- alignItems: 'center',
736
- gap: 4,
737
- paddingHorizontal: 9,
738
- paddingVertical: 6,
739
- borderRadius: 8,
740
- backgroundColor: `${AppColors.purple}14`,
741
- borderWidth: 1,
742
- borderColor: `${AppColors.purple}33`,
743
- },
744
- exportButtonText: {
745
- fontFamily: AppFonts.interBold,
746
- fontSize: 11,
747
- color: AppColors.purple,
748
- },
749
- scrollArea: {
750
- flex: 1,
751
- },
752
- scrollContent: {
753
- padding: 12,
754
- gap: 12,
755
- paddingBottom: 100,
756
- },
757
- heroCard: {
758
- backgroundColor: AppColors.primaryLight,
759
- borderRadius: 14,
760
- borderWidth: 1,
761
- borderColor: AppColors.grayBorderSecondary,
762
- padding: 14,
763
- shadowColor: AppColors.black,
764
- shadowOpacity: 0.04,
765
- shadowRadius: 4,
766
- shadowOffset: { width: 0, height: 2 },
767
- elevation: 1,
768
- gap: 12,
769
- },
770
- heroHeader: {
771
- flexDirection: 'row',
772
- alignItems: 'center',
773
- gap: 10,
774
- },
775
- heroIconWrap: {
776
- width: 38,
777
- height: 38,
778
- borderRadius: 10,
779
- backgroundColor: AppColors.purple,
780
- alignItems: 'center',
781
- justifyContent: 'center',
782
- shadowColor: AppColors.purple,
783
- shadowOpacity: 0.25,
784
- shadowRadius: 4,
785
- shadowOffset: { width: 0, height: 2 },
786
- elevation: 2,
787
- },
788
- heroTitle: {
789
- fontFamily: AppFonts.interBold,
790
- fontSize: 15,
791
- color: AppColors.primaryBlack,
792
- letterSpacing: -0.2,
793
- },
794
- heroSubtitle: {
795
- fontFamily: AppFonts.interRegular,
796
- fontSize: 11.5,
797
- color: AppColors.grayText,
798
- marginTop: 1,
799
- },
800
- heroBadge: {
801
- flexDirection: 'row',
802
- alignItems: 'center',
803
- gap: 4,
804
- backgroundColor: `${AppColors.emerald500}18`,
805
- paddingHorizontal: 7,
806
- paddingVertical: 3,
807
- borderRadius: 6,
808
- },
809
- pulseDot: {
810
- width: 6,
811
- height: 6,
812
- borderRadius: 3,
813
- backgroundColor: AppColors.emerald500,
814
- },
815
- heroBadgeText: {
816
- fontFamily: AppFonts.interBold,
817
- fontSize: 9.5,
818
- color: AppColors.emerald500,
819
- },
820
- heroMetricsStrip: {
821
- flexDirection: 'row',
822
- alignItems: 'center',
823
- backgroundColor: AppColors.grayBackground,
824
- borderRadius: 10,
825
- paddingVertical: 8,
826
- paddingHorizontal: 10,
827
- },
828
- heroMetricItem: {
829
- flex: 1,
830
- alignItems: 'center',
831
- paddingHorizontal: 2,
832
- minWidth: 0,
833
- },
834
- heroMetricLabel: {
835
- fontFamily: AppFonts.interBold,
836
- fontSize: 8.5,
837
- color: AppColors.grayTextWeak,
838
- letterSpacing: 0.4,
839
- },
840
- heroMetricValue: {
841
- fontFamily: AppFonts.interBold,
842
- fontSize: 11,
843
- color: AppColors.primaryBlack,
844
- marginTop: 2,
845
- },
846
- heroMetricDivider: {
847
- width: 1,
848
- height: 20,
849
- backgroundColor: AppColors.dividerColor,
850
- },
851
- sectionCard: {
852
- backgroundColor: AppColors.primaryLight,
853
- borderRadius: 14,
854
- borderWidth: 1,
855
- borderColor: AppColors.grayBorderSecondary,
856
- padding: 14,
857
- shadowColor: AppColors.black,
858
- shadowOpacity: 0.03,
859
- shadowRadius: 3,
860
- shadowOffset: { width: 0, height: 1 },
861
- elevation: 1,
862
- },
863
- sectionTitle: {
864
- fontFamily: AppFonts.interBold,
865
- fontSize: 10.5,
866
- color: AppColors.grayTextWeak,
867
- letterSpacing: 0.8,
868
- marginBottom: 8,
869
- textTransform: 'uppercase',
870
- },
871
- infoRow: {
872
- flexDirection: 'row',
873
- alignItems: 'center',
874
- justifyContent: 'space-between',
875
- paddingVertical: 9,
876
- borderBottomWidth: 1,
877
- borderBottomColor: AppColors.dividerColor,
878
- },
879
- infoLabel: {
880
- fontFamily: AppFonts.interMedium,
881
- fontSize: 12.5,
882
- color: AppColors.primaryBlack,
883
- },
884
- infoSubtext: {
885
- fontFamily: AppFonts.interRegular,
886
- fontSize: 10,
887
- color: AppColors.grayTextWeak,
888
- marginTop: 1,
889
- },
890
- infoBadge: {
891
- paddingHorizontal: 5,
892
- paddingVertical: 1,
893
- borderRadius: 4,
894
- borderWidth: 1,
895
- },
896
- infoBadgeText: {
897
- fontFamily: AppFonts.interBold,
898
- fontSize: 8.5,
899
- },
900
- infoValue: {
901
- fontFamily: AppFonts.interBold,
902
- fontSize: 12,
903
- color: AppColors.primaryBlack,
904
- flexShrink: 1,
905
- textAlign: 'right',
906
- },
907
- rowCopyBtn: {
908
- padding: 4,
909
- borderRadius: 4,
910
- backgroundColor: AppColors.grayBackground,
911
- },
912
- emptySearchCard: {
913
- backgroundColor: AppColors.primaryLight,
914
- borderRadius: 14,
915
- borderWidth: 1,
916
- borderColor: AppColors.grayBorderSecondary,
917
- padding: 24,
918
- alignItems: 'center',
919
- justifyContent: 'center',
920
- gap: 8,
921
- marginTop: 8,
922
- },
923
- emptySearchTitle: {
924
- fontFamily: AppFonts.interBold,
925
- fontSize: 13.5,
926
- color: AppColors.primaryBlack,
927
- textAlign: 'center',
928
- },
929
- emptySearchSubtitle: {
930
- fontFamily: AppFonts.interRegular,
931
- fontSize: 11.5,
932
- color: AppColors.grayTextWeak,
933
- textAlign: 'center',
934
- },
935
- clearSearchBtn: {
936
- marginTop: 6,
937
- paddingHorizontal: 14,
938
- paddingVertical: 6.5,
939
- borderRadius: 8,
940
- backgroundColor: AppColors.purple,
941
- },
942
- clearSearchBtnText: {
943
- fontFamily: AppFonts.interBold,
944
- fontSize: 11,
945
- color: AppColors.white,
946
- },
947
- });
948
- export default DeviceInfoTab;
210
+ {v.trim().length>0&&!Ze&&<T style={r.emptySearchCard}>
211
+ <Ue size={26}color={e.grayTextWeak}/>
212
+ <I style={r.emptySearchTitle}>No matching device specifications</I>
213
+ <I style={r.emptySearchSubtitle}>
214
+ No properties matched &ldquo;{v}&rdquo;
215
+ </I>
216
+ <Se onPress={()=>ee("")}style={r.clearSearchBtn}>
217
+ <I style={r.clearSearchBtnText}>Clear Search</I>
218
+ </Se>
219
+ </T>}
220
+
221
+ <T style={{height:48}}/>
222
+ </He>
223
+ </T>});const r=tt.create({container:{flex:1,backgroundColor:e.grayBackground},subTabsWrapper:{backgroundColor:e.primaryLight,borderBottomWidth:1,borderBottomColor:e.dividerColor,paddingVertical:8},subTabsContainer:{paddingHorizontal:12,flexDirection:"row",alignItems:"center",gap:6},subTabPill:{flexDirection:"row",alignItems:"center",gap:5,paddingHorizontal:10,paddingVertical:5.5,borderRadius:8,backgroundColor:e.grayBackground,borderWidth:1,borderColor:e.grayBorderSecondary},subTabPillActive:{backgroundColor:e.purple,borderColor:e.purple},subTabPillText:{fontFamily:E.interBold,fontSize:11,color:e.grayText},subTabPillTextActive:{color:e.white},actionBar:{flexDirection:"row",alignItems:"center",paddingHorizontal:12,paddingVertical:8,backgroundColor:e.primaryLight,borderBottomWidth:1,borderBottomColor:e.dividerColor,gap:8},searchBar:{flex:1,flexDirection:"row",alignItems:"center",backgroundColor:e.grayBackground,borderRadius:8,paddingHorizontal:9,paddingVertical:$.OS==="ios"?6:2,borderWidth:1,borderColor:e.grayBorderSecondary,gap:6},searchInput:{flex:1,fontFamily:E.interMedium,fontSize:12,color:e.primaryBlack,padding:0},exportButton:{flexDirection:"row",alignItems:"center",gap:4,paddingHorizontal:9,paddingVertical:6,borderRadius:8,backgroundColor:`${e.purple}14`,borderWidth:1,borderColor:`${e.purple}33`},exportButtonText:{fontFamily:E.interBold,fontSize:11,color:e.purple},scrollArea:{flex:1},scrollContent:{padding:12,gap:12,paddingBottom:100},heroCard:{backgroundColor:e.primaryLight,borderRadius:14,borderWidth:1,borderColor:e.grayBorderSecondary,padding:14,shadowColor:e.black,shadowOpacity:.04,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:1,gap:12},heroHeader:{flexDirection:"row",alignItems:"center",gap:10},heroIconWrap:{width:38,height:38,borderRadius:10,backgroundColor:e.purple,alignItems:"center",justifyContent:"center",shadowColor:e.purple,shadowOpacity:.25,shadowRadius:4,shadowOffset:{width:0,height:2},elevation:2},heroTitle:{fontFamily:E.interBold,fontSize:15,color:e.primaryBlack,letterSpacing:-.2},heroSubtitle:{fontFamily:E.interRegular,fontSize:11.5,color:e.grayText,marginTop:1},heroBadge:{flexDirection:"row",alignItems:"center",gap:4,backgroundColor:`${e.emerald500}18`,paddingHorizontal:7,paddingVertical:3,borderRadius:6},pulseDot:{width:6,height:6,borderRadius:3,backgroundColor:e.emerald500},heroBadgeText:{fontFamily:E.interBold,fontSize:9.5,color:e.emerald500},heroMetricsStrip:{flexDirection:"row",alignItems:"center",backgroundColor:e.grayBackground,borderRadius:10,paddingVertical:8,paddingHorizontal:10},heroMetricItem:{flex:1,alignItems:"center",paddingHorizontal:2,minWidth:0},heroMetricLabel:{fontFamily:E.interBold,fontSize:8.5,color:e.grayTextWeak,letterSpacing:.4},heroMetricValue:{fontFamily:E.interBold,fontSize:11,color:e.primaryBlack,marginTop:2},heroMetricDivider:{width:1,height:20,backgroundColor:e.dividerColor},sectionCard:{backgroundColor:e.primaryLight,borderRadius:14,borderWidth:1,borderColor:e.grayBorderSecondary,padding:14,shadowColor:e.black,shadowOpacity:.03,shadowRadius:3,shadowOffset:{width:0,height:1},elevation:1},sectionTitle:{fontFamily:E.interBold,fontSize:10.5,color:e.grayTextWeak,letterSpacing:.8,marginBottom:8,textTransform:"uppercase"},infoRow:{flexDirection:"row",alignItems:"center",justifyContent:"space-between",paddingVertical:9,borderBottomWidth:1,borderBottomColor:e.dividerColor},infoLabel:{fontFamily:E.interMedium,fontSize:12.5,color:e.primaryBlack},infoSubtext:{fontFamily:E.interRegular,fontSize:10,color:e.grayTextWeak,marginTop:1},infoBadge:{paddingHorizontal:5,paddingVertical:1,borderRadius:4,borderWidth:1},infoBadgeText:{fontFamily:E.interBold,fontSize:8.5},infoValue:{fontFamily:E.interBold,fontSize:12,color:e.primaryBlack,flexShrink:1,textAlign:"right"},rowCopyBtn:{padding:4,borderRadius:4,backgroundColor:e.grayBackground},emptySearchCard:{backgroundColor:e.primaryLight,borderRadius:14,borderWidth:1,borderColor:e.grayBorderSecondary,padding:24,alignItems:"center",justifyContent:"center",gap:8,marginTop:8},emptySearchTitle:{fontFamily:E.interBold,fontSize:13.5,color:e.primaryBlack,textAlign:"center"},emptySearchSubtitle:{fontFamily:E.interRegular,fontSize:11.5,color:e.grayTextWeak,textAlign:"center"},clearSearchBtn:{marginTop:6,paddingHorizontal:14,paddingVertical:6.5,borderRadius:8,backgroundColor:e.purple},clearSearchBtnText:{fontFamily:E.interBold,fontSize:11,color:e.white}});export default DeviceInfoTab;