react-native-inapp-inspector 1.0.0

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 (291) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +97 -0
  3. package/dist/commonjs/components/AnalyticsDetail.d.ts +6 -0
  4. package/dist/commonjs/components/AnalyticsDetail.js +558 -0
  5. package/dist/commonjs/components/AnalyticsEventCard.d.ts +18 -0
  6. package/dist/commonjs/components/AnalyticsEventCard.js +327 -0
  7. package/dist/commonjs/components/AnalyticsGraph.d.ts +8 -0
  8. package/dist/commonjs/components/AnalyticsGraph.js +416 -0
  9. package/dist/commonjs/components/CodeSnippet.d.ts +8 -0
  10. package/dist/commonjs/components/CodeSnippet.js +427 -0
  11. package/dist/commonjs/components/ConsoleLogCard.d.ts +10 -0
  12. package/dist/commonjs/components/ConsoleLogCard.js +401 -0
  13. package/dist/commonjs/components/CopyButton.d.ts +4 -0
  14. package/dist/commonjs/components/CopyButton.js +69 -0
  15. package/dist/commonjs/components/DiffViewer.d.ts +7 -0
  16. package/dist/commonjs/components/DiffViewer.js +86 -0
  17. package/dist/commonjs/components/DomainHeader.d.ts +18 -0
  18. package/dist/commonjs/components/DomainHeader.js +136 -0
  19. package/dist/commonjs/components/EmptyState.d.ts +5 -0
  20. package/dist/commonjs/components/EmptyState.js +40 -0
  21. package/dist/commonjs/components/HeadersSection.d.ts +4 -0
  22. package/dist/commonjs/components/HeadersSection.js +155 -0
  23. package/dist/commonjs/components/HighlightText.d.ts +3 -0
  24. package/dist/commonjs/components/HighlightText.js +57 -0
  25. package/dist/commonjs/components/JsonViewer.d.ts +7 -0
  26. package/dist/commonjs/components/JsonViewer.js +19 -0
  27. package/dist/commonjs/components/LogCard.d.ts +4 -0
  28. package/dist/commonjs/components/LogCard.js +179 -0
  29. package/dist/commonjs/components/MetaAccordion.d.ts +4 -0
  30. package/dist/commonjs/components/MetaAccordion.js +113 -0
  31. package/dist/commonjs/components/MiniBarChart.d.ts +7 -0
  32. package/dist/commonjs/components/MiniBarChart.js +56 -0
  33. package/dist/commonjs/components/MiniLineChart.d.ts +6 -0
  34. package/dist/commonjs/components/MiniLineChart.js +58 -0
  35. package/dist/commonjs/components/NetworkIcons.d.ts +31 -0
  36. package/dist/commonjs/components/NetworkIcons.js +245 -0
  37. package/dist/commonjs/components/SectionHeader.d.ts +4 -0
  38. package/dist/commonjs/components/SectionHeader.js +87 -0
  39. package/dist/commonjs/components/SourcePageCard.d.ts +4 -0
  40. package/dist/commonjs/components/SourcePageCard.js +132 -0
  41. package/dist/commonjs/components/TouchableScale.d.ts +9 -0
  42. package/dist/commonjs/components/TouchableScale.js +44 -0
  43. package/dist/commonjs/components/TreeNode.d.ts +4 -0
  44. package/dist/commonjs/components/TreeNode.js +140 -0
  45. package/dist/commonjs/constants/index.d.ts +7 -0
  46. package/dist/commonjs/constants/index.js +35 -0
  47. package/dist/commonjs/customHooks/analyticsLogger.d.ts +21 -0
  48. package/dist/commonjs/customHooks/analyticsLogger.js +160 -0
  49. package/dist/commonjs/customHooks/consoleLogger.d.ts +5 -0
  50. package/dist/commonjs/customHooks/consoleLogger.js +141 -0
  51. package/dist/commonjs/customHooks/logFilters.d.ts +5 -0
  52. package/dist/commonjs/customHooks/logFilters.js +34 -0
  53. package/dist/commonjs/customHooks/networkLogger.d.ts +20 -0
  54. package/dist/commonjs/customHooks/networkLogger.js +272 -0
  55. package/dist/commonjs/customHooks/useAccordion.d.ts +17 -0
  56. package/dist/commonjs/customHooks/useAccordion.js +48 -0
  57. package/dist/commonjs/customHooks/webViewLogger.d.ts +22 -0
  58. package/dist/commonjs/customHooks/webViewLogger.js +412 -0
  59. package/dist/commonjs/helpers/index.d.ts +20 -0
  60. package/dist/commonjs/helpers/index.js +229 -0
  61. package/dist/commonjs/index.d.ts +7 -0
  62. package/dist/commonjs/index.js +2668 -0
  63. package/dist/commonjs/styles/AppColors.d.ts +27 -0
  64. package/dist/commonjs/styles/AppColors.js +30 -0
  65. package/dist/commonjs/styles/AppFonts.d.ts +7 -0
  66. package/dist/commonjs/styles/AppFonts.js +10 -0
  67. package/dist/commonjs/styles/index.d.ts +1488 -0
  68. package/dist/commonjs/styles/index.js +1357 -0
  69. package/dist/commonjs/types/index.d.ts +127 -0
  70. package/dist/commonjs/types/index.js +2 -0
  71. package/dist/esm/components/AnalyticsDetail.d.ts +6 -0
  72. package/dist/esm/components/AnalyticsDetail.js +520 -0
  73. package/dist/esm/components/AnalyticsEventCard.d.ts +18 -0
  74. package/dist/esm/components/AnalyticsEventCard.js +288 -0
  75. package/dist/esm/components/AnalyticsGraph.d.ts +8 -0
  76. package/dist/esm/components/AnalyticsGraph.js +378 -0
  77. package/dist/esm/components/CodeSnippet.d.ts +8 -0
  78. package/dist/esm/components/CodeSnippet.js +392 -0
  79. package/dist/esm/components/ConsoleLogCard.d.ts +10 -0
  80. package/dist/esm/components/ConsoleLogCard.js +362 -0
  81. package/dist/esm/components/CopyButton.d.ts +4 -0
  82. package/dist/esm/components/CopyButton.js +31 -0
  83. package/dist/esm/components/DiffViewer.d.ts +7 -0
  84. package/dist/esm/components/DiffViewer.js +48 -0
  85. package/dist/esm/components/DomainHeader.d.ts +18 -0
  86. package/dist/esm/components/DomainHeader.js +98 -0
  87. package/dist/esm/components/EmptyState.d.ts +5 -0
  88. package/dist/esm/components/EmptyState.js +35 -0
  89. package/dist/esm/components/HeadersSection.d.ts +4 -0
  90. package/dist/esm/components/HeadersSection.js +117 -0
  91. package/dist/esm/components/HighlightText.d.ts +3 -0
  92. package/dist/esm/components/HighlightText.js +52 -0
  93. package/dist/esm/components/JsonViewer.d.ts +7 -0
  94. package/dist/esm/components/JsonViewer.js +14 -0
  95. package/dist/esm/components/LogCard.d.ts +4 -0
  96. package/dist/esm/components/LogCard.js +141 -0
  97. package/dist/esm/components/MetaAccordion.d.ts +4 -0
  98. package/dist/esm/components/MetaAccordion.js +108 -0
  99. package/dist/esm/components/MiniBarChart.d.ts +7 -0
  100. package/dist/esm/components/MiniBarChart.js +18 -0
  101. package/dist/esm/components/MiniLineChart.d.ts +6 -0
  102. package/dist/esm/components/MiniLineChart.js +20 -0
  103. package/dist/esm/components/NetworkIcons.d.ts +31 -0
  104. package/dist/esm/components/NetworkIcons.js +176 -0
  105. package/dist/esm/components/SectionHeader.d.ts +4 -0
  106. package/dist/esm/components/SectionHeader.js +49 -0
  107. package/dist/esm/components/SourcePageCard.d.ts +4 -0
  108. package/dist/esm/components/SourcePageCard.js +94 -0
  109. package/dist/esm/components/TouchableScale.d.ts +9 -0
  110. package/dist/esm/components/TouchableScale.js +9 -0
  111. package/dist/esm/components/TreeNode.d.ts +4 -0
  112. package/dist/esm/components/TreeNode.js +102 -0
  113. package/dist/esm/constants/index.d.ts +7 -0
  114. package/dist/esm/constants/index.js +32 -0
  115. package/dist/esm/customHooks/analyticsLogger.d.ts +21 -0
  116. package/dist/esm/customHooks/analyticsLogger.js +152 -0
  117. package/dist/esm/customHooks/consoleLogger.d.ts +5 -0
  118. package/dist/esm/customHooks/consoleLogger.js +134 -0
  119. package/dist/esm/customHooks/logFilters.d.ts +5 -0
  120. package/dist/esm/customHooks/logFilters.js +31 -0
  121. package/dist/esm/customHooks/networkLogger.d.ts +20 -0
  122. package/dist/esm/customHooks/networkLogger.js +264 -0
  123. package/dist/esm/customHooks/useAccordion.d.ts +17 -0
  124. package/dist/esm/customHooks/useAccordion.js +46 -0
  125. package/dist/esm/customHooks/webViewLogger.d.ts +22 -0
  126. package/dist/esm/customHooks/webViewLogger.js +365 -0
  127. package/dist/esm/helpers/index.d.ts +20 -0
  128. package/dist/esm/helpers/index.js +207 -0
  129. package/dist/esm/index.d.ts +7 -0
  130. package/dist/esm/index.js +2611 -0
  131. package/dist/esm/styles/AppColors.d.ts +27 -0
  132. package/dist/esm/styles/AppColors.js +27 -0
  133. package/dist/esm/styles/AppFonts.d.ts +7 -0
  134. package/dist/esm/styles/AppFonts.js +7 -0
  135. package/dist/esm/styles/index.d.ts +1488 -0
  136. package/dist/esm/styles/index.js +1355 -0
  137. package/dist/esm/types/index.d.ts +127 -0
  138. package/dist/esm/types/index.js +1 -0
  139. package/fonts/Inter/Inter.ttc +0 -0
  140. package/fonts/Inter/InterVariable-Italic.ttf +0 -0
  141. package/fonts/Inter/InterVariable.ttf +0 -0
  142. package/fonts/Inter/LICENSE.txt +92 -0
  143. package/fonts/Inter/extras/otf/Inter-Black.otf +0 -0
  144. package/fonts/Inter/extras/otf/Inter-BlackItalic.otf +0 -0
  145. package/fonts/Inter/extras/otf/Inter-Bold.otf +0 -0
  146. package/fonts/Inter/extras/otf/Inter-BoldItalic.otf +0 -0
  147. package/fonts/Inter/extras/otf/Inter-ExtraBold.otf +0 -0
  148. package/fonts/Inter/extras/otf/Inter-ExtraBoldItalic.otf +0 -0
  149. package/fonts/Inter/extras/otf/Inter-ExtraLight.otf +0 -0
  150. package/fonts/Inter/extras/otf/Inter-ExtraLightItalic.otf +0 -0
  151. package/fonts/Inter/extras/otf/Inter-Italic.otf +0 -0
  152. package/fonts/Inter/extras/otf/Inter-Light.otf +0 -0
  153. package/fonts/Inter/extras/otf/Inter-LightItalic.otf +0 -0
  154. package/fonts/Inter/extras/otf/Inter-Medium.otf +0 -0
  155. package/fonts/Inter/extras/otf/Inter-MediumItalic.otf +0 -0
  156. package/fonts/Inter/extras/otf/Inter-Regular.otf +0 -0
  157. package/fonts/Inter/extras/otf/Inter-SemiBold.otf +0 -0
  158. package/fonts/Inter/extras/otf/Inter-SemiBoldItalic.otf +0 -0
  159. package/fonts/Inter/extras/otf/Inter-Thin.otf +0 -0
  160. package/fonts/Inter/extras/otf/Inter-ThinItalic.otf +0 -0
  161. package/fonts/Inter/extras/otf/InterDisplay-Black.otf +0 -0
  162. package/fonts/Inter/extras/otf/InterDisplay-BlackItalic.otf +0 -0
  163. package/fonts/Inter/extras/otf/InterDisplay-Bold.otf +0 -0
  164. package/fonts/Inter/extras/otf/InterDisplay-BoldItalic.otf +0 -0
  165. package/fonts/Inter/extras/otf/InterDisplay-ExtraBold.otf +0 -0
  166. package/fonts/Inter/extras/otf/InterDisplay-ExtraBoldItalic.otf +0 -0
  167. package/fonts/Inter/extras/otf/InterDisplay-ExtraLight.otf +0 -0
  168. package/fonts/Inter/extras/otf/InterDisplay-ExtraLightItalic.otf +0 -0
  169. package/fonts/Inter/extras/otf/InterDisplay-Italic.otf +0 -0
  170. package/fonts/Inter/extras/otf/InterDisplay-Light.otf +0 -0
  171. package/fonts/Inter/extras/otf/InterDisplay-LightItalic.otf +0 -0
  172. package/fonts/Inter/extras/otf/InterDisplay-Medium.otf +0 -0
  173. package/fonts/Inter/extras/otf/InterDisplay-MediumItalic.otf +0 -0
  174. package/fonts/Inter/extras/otf/InterDisplay-Regular.otf +0 -0
  175. package/fonts/Inter/extras/otf/InterDisplay-SemiBold.otf +0 -0
  176. package/fonts/Inter/extras/otf/InterDisplay-SemiBoldItalic.otf +0 -0
  177. package/fonts/Inter/extras/otf/InterDisplay-Thin.otf +0 -0
  178. package/fonts/Inter/extras/otf/InterDisplay-ThinItalic.otf +0 -0
  179. package/fonts/Inter/extras/ttf/Inter-Black.ttf +0 -0
  180. package/fonts/Inter/extras/ttf/Inter-BlackItalic.ttf +0 -0
  181. package/fonts/Inter/extras/ttf/Inter-Bold.ttf +0 -0
  182. package/fonts/Inter/extras/ttf/Inter-BoldItalic.ttf +0 -0
  183. package/fonts/Inter/extras/ttf/Inter-ExtraBold.ttf +0 -0
  184. package/fonts/Inter/extras/ttf/Inter-ExtraBoldItalic.ttf +0 -0
  185. package/fonts/Inter/extras/ttf/Inter-ExtraLight.ttf +0 -0
  186. package/fonts/Inter/extras/ttf/Inter-ExtraLightItalic.ttf +0 -0
  187. package/fonts/Inter/extras/ttf/Inter-Italic.ttf +0 -0
  188. package/fonts/Inter/extras/ttf/Inter-Light.ttf +0 -0
  189. package/fonts/Inter/extras/ttf/Inter-LightItalic.ttf +0 -0
  190. package/fonts/Inter/extras/ttf/Inter-Medium.ttf +0 -0
  191. package/fonts/Inter/extras/ttf/Inter-MediumItalic.ttf +0 -0
  192. package/fonts/Inter/extras/ttf/Inter-Regular.ttf +0 -0
  193. package/fonts/Inter/extras/ttf/Inter-SemiBold.ttf +0 -0
  194. package/fonts/Inter/extras/ttf/Inter-SemiBoldItalic.ttf +0 -0
  195. package/fonts/Inter/extras/ttf/Inter-Thin.ttf +0 -0
  196. package/fonts/Inter/extras/ttf/Inter-ThinItalic.ttf +0 -0
  197. package/fonts/Inter/extras/ttf/InterDisplay-Black.ttf +0 -0
  198. package/fonts/Inter/extras/ttf/InterDisplay-BlackItalic.ttf +0 -0
  199. package/fonts/Inter/extras/ttf/InterDisplay-Bold.ttf +0 -0
  200. package/fonts/Inter/extras/ttf/InterDisplay-BoldItalic.ttf +0 -0
  201. package/fonts/Inter/extras/ttf/InterDisplay-ExtraBold.ttf +0 -0
  202. package/fonts/Inter/extras/ttf/InterDisplay-ExtraBoldItalic.ttf +0 -0
  203. package/fonts/Inter/extras/ttf/InterDisplay-ExtraLight.ttf +0 -0
  204. package/fonts/Inter/extras/ttf/InterDisplay-ExtraLightItalic.ttf +0 -0
  205. package/fonts/Inter/extras/ttf/InterDisplay-Italic.ttf +0 -0
  206. package/fonts/Inter/extras/ttf/InterDisplay-Light.ttf +0 -0
  207. package/fonts/Inter/extras/ttf/InterDisplay-LightItalic.ttf +0 -0
  208. package/fonts/Inter/extras/ttf/InterDisplay-Medium.ttf +0 -0
  209. package/fonts/Inter/extras/ttf/InterDisplay-MediumItalic.ttf +0 -0
  210. package/fonts/Inter/extras/ttf/InterDisplay-Regular.ttf +0 -0
  211. package/fonts/Inter/extras/ttf/InterDisplay-SemiBold.ttf +0 -0
  212. package/fonts/Inter/extras/ttf/InterDisplay-SemiBoldItalic.ttf +0 -0
  213. package/fonts/Inter/extras/ttf/InterDisplay-Thin.ttf +0 -0
  214. package/fonts/Inter/extras/ttf/InterDisplay-ThinItalic.ttf +0 -0
  215. package/fonts/Inter/extras/woff-hinted/Inter-Black.woff2 +0 -0
  216. package/fonts/Inter/extras/woff-hinted/Inter-BlackItalic.woff2 +0 -0
  217. package/fonts/Inter/extras/woff-hinted/Inter-Bold.woff2 +0 -0
  218. package/fonts/Inter/extras/woff-hinted/Inter-BoldItalic.woff2 +0 -0
  219. package/fonts/Inter/extras/woff-hinted/Inter-ExtraBold.woff2 +0 -0
  220. package/fonts/Inter/extras/woff-hinted/Inter-ExtraBoldItalic.woff2 +0 -0
  221. package/fonts/Inter/extras/woff-hinted/Inter-ExtraLight.woff2 +0 -0
  222. package/fonts/Inter/extras/woff-hinted/Inter-ExtraLightItalic.woff2 +0 -0
  223. package/fonts/Inter/extras/woff-hinted/Inter-Italic.woff2 +0 -0
  224. package/fonts/Inter/extras/woff-hinted/Inter-Light.woff2 +0 -0
  225. package/fonts/Inter/extras/woff-hinted/Inter-LightItalic.woff2 +0 -0
  226. package/fonts/Inter/extras/woff-hinted/Inter-Medium.woff2 +0 -0
  227. package/fonts/Inter/extras/woff-hinted/Inter-MediumItalic.woff2 +0 -0
  228. package/fonts/Inter/extras/woff-hinted/Inter-Regular.woff2 +0 -0
  229. package/fonts/Inter/extras/woff-hinted/Inter-SemiBold.woff2 +0 -0
  230. package/fonts/Inter/extras/woff-hinted/Inter-SemiBoldItalic.woff2 +0 -0
  231. package/fonts/Inter/extras/woff-hinted/Inter-Thin.woff2 +0 -0
  232. package/fonts/Inter/extras/woff-hinted/Inter-ThinItalic.woff2 +0 -0
  233. package/fonts/Inter/extras/woff-hinted/InterDisplay-Black.woff2 +0 -0
  234. package/fonts/Inter/extras/woff-hinted/InterDisplay-BlackItalic.woff2 +0 -0
  235. package/fonts/Inter/extras/woff-hinted/InterDisplay-Bold.woff2 +0 -0
  236. package/fonts/Inter/extras/woff-hinted/InterDisplay-BoldItalic.woff2 +0 -0
  237. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBold.woff2 +0 -0
  238. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  239. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLight.woff2 +0 -0
  240. package/fonts/Inter/extras/woff-hinted/InterDisplay-ExtraLightItalic.woff2 +0 -0
  241. package/fonts/Inter/extras/woff-hinted/InterDisplay-Italic.woff2 +0 -0
  242. package/fonts/Inter/extras/woff-hinted/InterDisplay-Light.woff2 +0 -0
  243. package/fonts/Inter/extras/woff-hinted/InterDisplay-LightItalic.woff2 +0 -0
  244. package/fonts/Inter/extras/woff-hinted/InterDisplay-Medium.woff2 +0 -0
  245. package/fonts/Inter/extras/woff-hinted/InterDisplay-MediumItalic.woff2 +0 -0
  246. package/fonts/Inter/extras/woff-hinted/InterDisplay-Regular.woff2 +0 -0
  247. package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBold.woff2 +0 -0
  248. package/fonts/Inter/extras/woff-hinted/InterDisplay-SemiBoldItalic.woff2 +0 -0
  249. package/fonts/Inter/extras/woff-hinted/InterDisplay-Thin.woff2 +0 -0
  250. package/fonts/Inter/extras/woff-hinted/InterDisplay-ThinItalic.woff2 +0 -0
  251. package/fonts/Inter/help.txt +165 -0
  252. package/fonts/Inter/web/Inter-Black.woff2 +0 -0
  253. package/fonts/Inter/web/Inter-BlackItalic.woff2 +0 -0
  254. package/fonts/Inter/web/Inter-Bold.woff2 +0 -0
  255. package/fonts/Inter/web/Inter-BoldItalic.woff2 +0 -0
  256. package/fonts/Inter/web/Inter-ExtraBold.woff2 +0 -0
  257. package/fonts/Inter/web/Inter-ExtraBoldItalic.woff2 +0 -0
  258. package/fonts/Inter/web/Inter-ExtraLight.woff2 +0 -0
  259. package/fonts/Inter/web/Inter-ExtraLightItalic.woff2 +0 -0
  260. package/fonts/Inter/web/Inter-Italic.woff2 +0 -0
  261. package/fonts/Inter/web/Inter-Light.woff2 +0 -0
  262. package/fonts/Inter/web/Inter-LightItalic.woff2 +0 -0
  263. package/fonts/Inter/web/Inter-Medium.woff2 +0 -0
  264. package/fonts/Inter/web/Inter-MediumItalic.woff2 +0 -0
  265. package/fonts/Inter/web/Inter-Regular.woff2 +0 -0
  266. package/fonts/Inter/web/Inter-SemiBold.woff2 +0 -0
  267. package/fonts/Inter/web/Inter-SemiBoldItalic.woff2 +0 -0
  268. package/fonts/Inter/web/Inter-Thin.woff2 +0 -0
  269. package/fonts/Inter/web/Inter-ThinItalic.woff2 +0 -0
  270. package/fonts/Inter/web/InterDisplay-Black.woff2 +0 -0
  271. package/fonts/Inter/web/InterDisplay-BlackItalic.woff2 +0 -0
  272. package/fonts/Inter/web/InterDisplay-Bold.woff2 +0 -0
  273. package/fonts/Inter/web/InterDisplay-BoldItalic.woff2 +0 -0
  274. package/fonts/Inter/web/InterDisplay-ExtraBold.woff2 +0 -0
  275. package/fonts/Inter/web/InterDisplay-ExtraBoldItalic.woff2 +0 -0
  276. package/fonts/Inter/web/InterDisplay-ExtraLight.woff2 +0 -0
  277. package/fonts/Inter/web/InterDisplay-ExtraLightItalic.woff2 +0 -0
  278. package/fonts/Inter/web/InterDisplay-Italic.woff2 +0 -0
  279. package/fonts/Inter/web/InterDisplay-Light.woff2 +0 -0
  280. package/fonts/Inter/web/InterDisplay-LightItalic.woff2 +0 -0
  281. package/fonts/Inter/web/InterDisplay-Medium.woff2 +0 -0
  282. package/fonts/Inter/web/InterDisplay-MediumItalic.woff2 +0 -0
  283. package/fonts/Inter/web/InterDisplay-Regular.woff2 +0 -0
  284. package/fonts/Inter/web/InterDisplay-SemiBold.woff2 +0 -0
  285. package/fonts/Inter/web/InterDisplay-SemiBoldItalic.woff2 +0 -0
  286. package/fonts/Inter/web/InterDisplay-Thin.woff2 +0 -0
  287. package/fonts/Inter/web/InterDisplay-ThinItalic.woff2 +0 -0
  288. package/fonts/Inter/web/InterVariable-Italic.woff2 +0 -0
  289. package/fonts/Inter/web/InterVariable.woff2 +0 -0
  290. package/fonts/Inter/web/inter.css +148 -0
  291. package/package.json +52 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Vengateswaran Balakrishnan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # React Native In-App Inspector
2
+
3
+ A premium, self-contained, and interactive in-app debugger for React Native applications. Inspect network requests, console logs, analytics events, and WebView states directly from your device.
4
+
5
+ ![React Native In-App Inspector](https://img.shields.io/badge/React_Native-In--App_Inspector-blue?style=for-the-badge&logo=react)
6
+
7
+ ## Features
8
+
9
+ - **🌐 Network Inspector**: Intercept and view HTTP requests and responses, track latency, export as cURL or Fetch, search logs, and view differences between subsequent requests.
10
+ - **💻 Console Logger**: In-app terminal displaying your `console.log`, `console.warn`, and `console.error` logs with customizable filters.
11
+ - **📊 Analytics Event Tracker**: Real-time logging and analytics debugging (e.g. Firebase Analytics, GA events).
12
+ - **🕸️ WebView Inspector**: Live tracking of navigation history, console logs, and inspection of HTML, CSS, and JS inside your `WebView` components.
13
+ - **📈 Embedded Visualizations**: Built-in mini charts visualizing metrics like latency, payload size, and errors over time.
14
+ - **🎨 Modern Dark UI**: Sleek, glassmorphism-inspired dark design with smooth micro-animations.
15
+
16
+ ---
17
+
18
+ ## Installation
19
+
20
+ Install the package and its peer dependencies in your React Native project:
21
+
22
+ ```bash
23
+ npm install react-native-inapp-inspector
24
+ # OR
25
+ yarn add react-native-inapp-inspector
26
+ ```
27
+
28
+ ### Peer Dependencies
29
+ Make sure you have the following peer dependencies installed in your project:
30
+
31
+ ```bash
32
+ npm install react-native-svg react-native-linear-gradient @react-navigation/native
33
+ ```
34
+
35
+ For iOS projects, don't forget to run pod install:
36
+ ```bash
37
+ cd ios && pod install
38
+ ```
39
+
40
+ ---
41
+
42
+ ## Integration
43
+
44
+ ### 1. Embed the Inspector Component
45
+ Place the `<NetworkInspector />` component at the root level of your application (usually in `App.tsx` or your root navigation container):
46
+
47
+ ```tsx
48
+ import React from 'react';
49
+ import { SafeAreaView } from 'react-native';
50
+ import NetworkInspector from 'react-native-inapp-inspector';
51
+
52
+ const App = () => {
53
+ return (
54
+ <SafeAreaView style={{ flex: 1 }}>
55
+ {/* Your application components */}
56
+
57
+ {/* Floating Inspector overlay */}
58
+ <NetworkInspector />
59
+ </SafeAreaView>
60
+ );
61
+ };
62
+
63
+ export default App;
64
+ ```
65
+
66
+ ### 2. Auto-Intercept Network Requests (Axios / Fetch)
67
+ The library automatically intercepts standard `fetch` and `XMLHttpRequest` requests when loaded. If you are using `axios`, you can register it to intercept requests:
68
+
69
+ ```typescript
70
+ import axios from 'axios';
71
+ import { addAxiosInterceptors } from 'react-native-inapp-inspector';
72
+
73
+ const api = axios.create({
74
+ baseURL: 'https://api.example.com',
75
+ });
76
+
77
+ // Register the interceptor
78
+ addAxiosInterceptors(api);
79
+ ```
80
+
81
+ ### 3. Log Analytics Events
82
+ Subscribe to and log custom analytics events:
83
+
84
+ ```typescript
85
+ import { subscribeAnalyticsEvents } from 'react-native-inapp-inspector';
86
+
87
+ // Log your custom events
88
+ subscribeAnalyticsEvents((events) => {
89
+ // Access and analyze logged events
90
+ });
91
+ ```
92
+
93
+ ---
94
+
95
+ ## License
96
+
97
+ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { AnalyticsEvent } from '../types';
3
+ declare const AnalyticsDetail: ({ event, }: {
4
+ event: AnalyticsEvent;
5
+ }) => React.JSX.Element;
6
+ export default AnalyticsDetail;
@@ -0,0 +1,558 @@
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
+ const react_1 = __importStar(require("react"));
40
+ const react_native_1 = require("react-native");
41
+ const react_native_linear_gradient_1 = __importDefault(require("react-native-linear-gradient"));
42
+ // Components
43
+ const CopyButton_1 = __importDefault(require("./CopyButton"));
44
+ const JsonViewer_1 = __importDefault(require("./JsonViewer"));
45
+ // Icons
46
+ const NetworkIcons_1 = require("./NetworkIcons");
47
+ // Utils
48
+ const AppFonts_1 = require("../styles/AppFonts");
49
+ // Stylesheet
50
+ const AppColors_1 = require("../styles/AppColors");
51
+ const styles_1 = __importDefault(require("../styles"));
52
+ const AnalyticsEventCard_1 = require("./AnalyticsEventCard");
53
+ // Helpers
54
+ const helpers_1 = require("../helpers");
55
+ // Sub Components
56
+ const ParamRowItem = ({ paramKey, value, }) => {
57
+ const isObject = typeof value === 'object' && value !== null;
58
+ const valStr = isObject ? JSON.stringify(value, null, 2) : String(value);
59
+ const [expanded, setExpanded] = (0, react_1.useState)(false);
60
+ const isLong = valStr.length > 80 || valStr.includes('\n') || isObject;
61
+ return (<react_native_1.View style={detailStyles.dataBox}>
62
+ <react_native_1.View style={detailStyles.dataBoxHeader}>
63
+ <react_native_1.Text style={detailStyles.dataBoxKey} numberOfLines={1}>
64
+ {paramKey}
65
+ </react_native_1.Text>
66
+ <CopyButton_1.default value={valStr} label={paramKey}/>
67
+ </react_native_1.View>
68
+ {expanded && isObject ? (<react_native_1.View style={detailStyles.jsonBlock}>
69
+ <JsonViewer_1.default data={value}/>
70
+ </react_native_1.View>) : (<react_native_1.Text style={detailStyles.dataBoxVal} selectable numberOfLines={expanded ? undefined : 2}>
71
+ {valStr}
72
+ </react_native_1.Text>)}
73
+ {isLong && (<react_native_1.Pressable onPress={() => setExpanded(!expanded)} style={detailStyles.showMoreBtn}>
74
+ <react_native_1.Text style={detailStyles.showMoreText}>
75
+ {expanded ? 'Show Less' : 'Show More'}
76
+ </react_native_1.Text>
77
+ </react_native_1.Pressable>)}
78
+ </react_native_1.View>);
79
+ };
80
+ const ParamTable = ({ data, emptyLabel, }) => {
81
+ const entries = Object.keys(data).map(key => ({
82
+ key,
83
+ value: data[key],
84
+ }));
85
+ if (entries.length === 0) {
86
+ return (<react_native_1.View style={detailStyles.emptyParams}>
87
+ <react_native_1.Text style={detailStyles.emptyParamsText}>
88
+ {emptyLabel ?? 'No parameters'}
89
+ </react_native_1.Text>
90
+ </react_native_1.View>);
91
+ }
92
+ return (<react_native_1.View style={detailStyles.paramList}>
93
+ {entries.map(({ key, value }) => (<ParamRowItem key={key} paramKey={key} value={value}/>))}
94
+ </react_native_1.View>);
95
+ };
96
+ const SectionCard = ({ title, children, count, accentColor = AppColors_1.AppColors.purple, }) => {
97
+ if (!title) {
98
+ return (<react_native_1.View style={{ paddingHorizontal: 16, paddingTop: 12, paddingBottom: 20 }}>
99
+ {children}
100
+ </react_native_1.View>);
101
+ }
102
+ return (<react_native_1.View style={detailStyles.sectionCard}>
103
+ <react_native_1.View style={detailStyles.sectionHeader}>
104
+ <react_native_1.View style={detailStyles.sectionTitleRow}>
105
+ <react_native_1.View style={[
106
+ detailStyles.sectionAccentDot,
107
+ { backgroundColor: accentColor },
108
+ ]}/>
109
+ <react_native_1.Text style={detailStyles.sectionTitle}>{title.toUpperCase()}</react_native_1.Text>
110
+ </react_native_1.View>
111
+ {typeof count === 'number' && (<react_native_1.View style={[
112
+ detailStyles.countBadge,
113
+ {
114
+ borderColor: `${accentColor}55`,
115
+ backgroundColor: `${accentColor}12`,
116
+ },
117
+ ]}>
118
+ <react_native_1.Text style={[detailStyles.countBadgeText, { color: accentColor }]}>
119
+ {count}
120
+ </react_native_1.Text>
121
+ </react_native_1.View>)}
122
+ </react_native_1.View>
123
+ <react_native_1.View style={{ paddingHorizontal: 14, paddingBottom: 14 }}>{children}</react_native_1.View>
124
+ </react_native_1.View>);
125
+ };
126
+ const AnalyticsDetail = ({ event, }) => {
127
+ const [search, setSearch] = (0, react_1.useState)('');
128
+ const [activeTab, setActiveTab] = (0, react_1.useState)('unformatted');
129
+ const SOURCE_COLORS = {
130
+ firebase: '#E07B1A',
131
+ manual: AppColors_1.AppColors.purple,
132
+ };
133
+ const params = event.params ?? {};
134
+ const userProperties = event.userProperties ?? {};
135
+ const eventColor = (0, AnalyticsEventCard_1.getEventColor)(event.name);
136
+ const sourceColor = SOURCE_COLORS[event.source] ?? AppColors_1.AppColors.purple;
137
+ const paramCount = Object.keys(params).length;
138
+ const upCount = Object.keys(userProperties).length;
139
+ const topMetrics = [];
140
+ if (event.screenName) {
141
+ topMetrics.push({
142
+ key: 'Screen',
143
+ value: event.screenName,
144
+ color: AppColors_1.AppColors.skyBlue,
145
+ });
146
+ }
147
+ if (event.userId) {
148
+ topMetrics.push({
149
+ key: 'User ID',
150
+ value: event.userId,
151
+ color: AppColors_1.AppColors.greenColor,
152
+ });
153
+ }
154
+ if (event.pageTitle) {
155
+ topMetrics.push({
156
+ key: 'Page',
157
+ value: event.pageTitle,
158
+ color: AppColors_1.AppColors.purple,
159
+ });
160
+ }
161
+ if (params?.primary_category) {
162
+ topMetrics.push({
163
+ key: 'Category',
164
+ value: String(params.primary_category),
165
+ color: AppColors_1.AppColors.purple,
166
+ });
167
+ }
168
+ if (params?.flow) {
169
+ topMetrics.push({
170
+ key: 'Flow',
171
+ value: String(params.flow),
172
+ color: AppColors_1.AppColors.greenColor,
173
+ });
174
+ }
175
+ if (params?.market_language) {
176
+ topMetrics.push({
177
+ key: 'Language',
178
+ value: String(params.market_language),
179
+ color: '#F59E0B',
180
+ }); // Amber
181
+ }
182
+ if (params?.tripType) {
183
+ topMetrics.push({
184
+ key: 'Trip Type',
185
+ value: String(params.tripType),
186
+ color: '#3B82F6',
187
+ }); // Blue
188
+ }
189
+ if (userProperties?.platform_type) {
190
+ topMetrics.push({
191
+ key: 'Platform',
192
+ value: String(userProperties.platform_type),
193
+ color: AppColors_1.AppColors.skyBlue,
194
+ });
195
+ }
196
+ if (userProperties?.login_status) {
197
+ topMetrics.push({
198
+ key: 'Login Status',
199
+ value: String(userProperties.login_status),
200
+ color: '#64748B',
201
+ });
202
+ }
203
+ topMetrics.unshift({
204
+ key: 'Source',
205
+ value: event.source,
206
+ color: sourceColor,
207
+ });
208
+ return (<react_native_1.ScrollView style={detailStyles.scroll} contentContainerStyle={detailStyles.content} showsVerticalScrollIndicator contentInsetAdjustmentBehavior="never" automaticallyAdjustContentInsets={false}>
209
+ <react_native_linear_gradient_1.default colors={[
210
+ `${eventColor}18`,
211
+ `${eventColor}06`,
212
+ AppColors_1.AppColors.grayBackground,
213
+ ]} style={detailStyles.hero}>
214
+ <react_native_1.View style={{
215
+ flexDirection: 'row',
216
+ width: '100%',
217
+ justifyContent: 'space-between',
218
+ alignItems: 'flex-start',
219
+ paddingHorizontal: 16,
220
+ paddingTop: 14,
221
+ marginBottom: 8,
222
+ }}>
223
+ <react_native_1.View style={{ flex: 1, paddingRight: 10 }}>
224
+ <react_native_1.Text style={{
225
+ fontFamily: AppFonts_1.AppFonts.interBold,
226
+ fontSize: 18,
227
+ color: AppColors_1.AppColors.primaryBlack,
228
+ marginBottom: 4,
229
+ }} numberOfLines={2}>
230
+ {event.name}
231
+ </react_native_1.Text>
232
+ <react_native_1.View style={{ flexDirection: 'row', alignItems: 'center', gap: 6 }}>
233
+ <react_native_1.View style={{
234
+ width: 8,
235
+ height: 8,
236
+ borderRadius: 4,
237
+ backgroundColor: sourceColor,
238
+ }}/>
239
+ <react_native_1.Text style={{
240
+ fontFamily: AppFonts_1.AppFonts.interMedium,
241
+ fontSize: 12,
242
+ color: AppColors_1.AppColors.grayTextStrong,
243
+ }}>
244
+ {(0, helpers_1.formatDateTimeToAnalytics)(event.timestamp)}
245
+ </react_native_1.Text>
246
+ </react_native_1.View>
247
+ </react_native_1.View>
248
+ <CopyButton_1.default value={JSON.stringify({ name: event.name, params: params }, null, 2)} label="Copy JSON"/>
249
+ </react_native_1.View>
250
+
251
+ {topMetrics.length > 0 && (<react_native_1.ScrollView horizontal showsHorizontalScrollIndicator={false} style={detailStyles.metricsScroll} contentContainerStyle={detailStyles.metricsGrid}>
252
+ {topMetrics.map((item, idx) => (<react_native_1.View key={idx} style={[
253
+ detailStyles.metricCard,
254
+ { borderLeftColor: item.color },
255
+ ]}>
256
+ <react_native_1.Text style={detailStyles.metricLabel}>{item.key}</react_native_1.Text>
257
+ <react_native_1.Text style={[detailStyles.metricValue, { color: item.color }]} numberOfLines={1}>
258
+ {item.value}
259
+ </react_native_1.Text>
260
+ </react_native_1.View>))}
261
+ </react_native_1.ScrollView>)}
262
+ </react_native_linear_gradient_1.default>
263
+
264
+ <react_native_1.View style={detailStyles.tabRow}>
265
+ <react_native_1.Pressable style={[
266
+ detailStyles.tabButton,
267
+ activeTab === 'unformatted' && detailStyles.tabActive,
268
+ ]} onPress={() => setActiveTab('unformatted')}>
269
+ <react_native_1.Text style={[
270
+ detailStyles.tabText,
271
+ activeTab === 'unformatted' && detailStyles.tabTextActive,
272
+ ]}>
273
+ JSON Viewer
274
+ </react_native_1.Text>
275
+ </react_native_1.Pressable>
276
+ <react_native_1.Pressable style={[
277
+ detailStyles.tabButton,
278
+ activeTab === 'formatted' && detailStyles.tabActive,
279
+ ]} onPress={() => setActiveTab('formatted')}>
280
+ <react_native_1.Text style={[
281
+ detailStyles.tabText,
282
+ activeTab === 'formatted' && detailStyles.tabTextActive,
283
+ ]}>
284
+ Tabular View
285
+ </react_native_1.Text>
286
+ </react_native_1.Pressable>
287
+ </react_native_1.View>
288
+
289
+ {activeTab === 'unformatted' && (<react_native_1.View style={detailStyles.searchRow}>
290
+ <react_native_1.View style={styles_1.default.detailSearchBox}>
291
+ <react_native_1.TextInput placeholder="Search JSON data..." placeholderTextColor={AppColors_1.AppColors.grayTextWeak} value={search} onChangeText={setSearch} style={styles_1.default.detailSearchInput} autoCorrect={false} autoCapitalize="none"/>
292
+ {search.length > 0 && (<react_native_1.Pressable onPress={() => setSearch('')} hitSlop={10} style={{ padding: 8 }}>
293
+ <NetworkIcons_1.ClearIcon color={AppColors_1.AppColors.grayTextWeak} size={14}/>
294
+ </react_native_1.Pressable>)}
295
+ </react_native_1.View>
296
+ </react_native_1.View>)}
297
+
298
+ {activeTab === 'formatted' && (<react_native_1.View style={{ gap: 10 }}>
299
+ {paramCount > 0 && (<SectionCard title="Event Parameters" count={paramCount} accentColor={eventColor}>
300
+ <ParamTable data={params} emptyLabel="No parameters"/>
301
+ </SectionCard>)}
302
+
303
+ {upCount > 0 && (<SectionCard title="User Properties" count={upCount} accentColor={AppColors_1.AppColors.greenColor}>
304
+ <ParamTable data={userProperties} emptyLabel="No user properties"/>
305
+ </SectionCard>)}
306
+ </react_native_1.View>)}
307
+
308
+ {activeTab === 'unformatted' && (<SectionCard accentColor={AppColors_1.AppColors.purple}>
309
+ <react_native_1.View style={[detailStyles.jsonBlock, { marginLeft: 0, marginTop: 0 }]}>
310
+ <JsonViewer_1.default data={{
311
+ name: event.name,
312
+ params: params,
313
+ ...(upCount > 0
314
+ ? {
315
+ userProperties: userProperties,
316
+ }
317
+ : {}),
318
+ }} search={search}/>
319
+ </react_native_1.View>
320
+ </SectionCard>)}
321
+
322
+ {/* Empty state */}
323
+ {paramCount === 0 && upCount === 0 && activeTab !== 'unformatted' && (<react_native_1.View style={detailStyles.emptyParams}>
324
+ <react_native_1.Text style={detailStyles.emptyParamsText}>
325
+ No parameters recorded for this event
326
+ </react_native_1.Text>
327
+ </react_native_1.View>)}
328
+ </react_native_1.ScrollView>);
329
+ };
330
+ const detailStyles = react_native_1.StyleSheet.create({
331
+ scroll: { flex: 1, backgroundColor: AppColors_1.AppColors.grayBackground },
332
+ content: {
333
+ paddingTop: 0,
334
+ paddingBottom: 40,
335
+ },
336
+ hero: {
337
+ paddingTop: 0,
338
+ paddingBottom: 16,
339
+ paddingHorizontal: 0,
340
+ gap: 8,
341
+ marginTop: 0,
342
+ marginBottom: 0,
343
+ width: '100%',
344
+ alignSelf: 'stretch',
345
+ },
346
+ searchRow: {
347
+ paddingHorizontal: 16,
348
+ marginVertical: 6,
349
+ },
350
+ sectionCard: {
351
+ marginHorizontal: 0,
352
+ borderRadius: 12,
353
+ overflow: 'hidden',
354
+ borderWidth: 1,
355
+ borderColor: AppColors_1.AppColors.grayBorderSecondary,
356
+ backgroundColor: AppColors_1.AppColors.primaryLight,
357
+ shadowColor: '#000',
358
+ shadowOpacity: 0.04,
359
+ shadowRadius: 4,
360
+ shadowOffset: { width: 0, height: 1 },
361
+ elevation: 1,
362
+ },
363
+ sectionHeader: {
364
+ flexDirection: 'row',
365
+ alignItems: 'center',
366
+ justifyContent: 'space-between',
367
+ paddingHorizontal: 14,
368
+ paddingVertical: 12,
369
+ },
370
+ sectionTitleRow: {
371
+ flexDirection: 'row',
372
+ alignItems: 'center',
373
+ gap: 8,
374
+ flex: 1,
375
+ },
376
+ sectionAccentDot: {
377
+ width: 8,
378
+ height: 8,
379
+ borderRadius: 4,
380
+ },
381
+ sectionTitle: {
382
+ fontFamily: AppFonts_1.AppFonts.interBold,
383
+ fontSize: 13,
384
+ color: AppColors_1.AppColors.primaryBlack,
385
+ },
386
+ sectionActions: {
387
+ flexDirection: 'row',
388
+ alignItems: 'center',
389
+ gap: 6,
390
+ },
391
+ countBadge: {
392
+ paddingHorizontal: 7,
393
+ paddingVertical: 2,
394
+ borderRadius: 8,
395
+ borderWidth: 1,
396
+ },
397
+ countBadgeText: {
398
+ fontFamily: AppFonts_1.AppFonts.interBold,
399
+ fontSize: 10,
400
+ },
401
+ paramList: {
402
+ gap: 8,
403
+ },
404
+ emptyParams: {
405
+ marginVertical: 12,
406
+ paddingVertical: 18,
407
+ paddingHorizontal: 14,
408
+ borderRadius: 10,
409
+ borderWidth: 1,
410
+ borderColor: AppColors_1.AppColors.grayBorderSecondary,
411
+ backgroundColor: AppColors_1.AppColors.primaryLight,
412
+ alignItems: 'center',
413
+ justifyContent: 'center',
414
+ },
415
+ emptyParamsText: {
416
+ fontFamily: AppFonts_1.AppFonts.interMedium,
417
+ fontSize: 13,
418
+ color: AppColors_1.AppColors.grayTextWeak,
419
+ textAlign: 'center',
420
+ lineHeight: 18,
421
+ },
422
+ dataBox: {
423
+ backgroundColor: '#FFFFFF',
424
+ borderRadius: 8,
425
+ borderWidth: 1,
426
+ borderColor: '#E5E7EB',
427
+ padding: 12,
428
+ },
429
+ dataBoxHeader: {
430
+ flexDirection: 'row',
431
+ justifyContent: 'space-between',
432
+ alignItems: 'center',
433
+ marginBottom: 8,
434
+ },
435
+ dataBoxKey: {
436
+ fontFamily: AppFonts_1.AppFonts.interBold,
437
+ fontWeight: 'bold',
438
+ fontSize: 13,
439
+ color: AppColors_1.AppColors.primaryBlack,
440
+ flex: 1,
441
+ paddingRight: 8,
442
+ },
443
+ dataBoxVal: {
444
+ fontFamily: AppFonts_1.AppFonts.interRegular,
445
+ fontSize: 13,
446
+ color: AppColors_1.AppColors.primaryBlack,
447
+ lineHeight: 18,
448
+ },
449
+ showMoreBtn: {
450
+ marginTop: 8,
451
+ alignSelf: 'flex-start',
452
+ backgroundColor: '#F3F4F6',
453
+ paddingHorizontal: 10,
454
+ paddingVertical: 4,
455
+ borderRadius: 4,
456
+ },
457
+ showMoreText: {
458
+ fontFamily: AppFonts_1.AppFonts.interMedium,
459
+ fontSize: 11,
460
+ color: '#4B5563', // matching previous UI color
461
+ },
462
+ jsonBlock: {
463
+ padding: 12,
464
+ borderWidth: 1,
465
+ borderColor: '#E0E7FF',
466
+ borderRadius: 8,
467
+ backgroundColor: '#EEF2FF',
468
+ },
469
+ metricsScroll: {
470
+ height: 92,
471
+ overflow: 'visible',
472
+ },
473
+ metricsGrid: {
474
+ gap: 8,
475
+ marginTop: 4,
476
+ paddingHorizontal: 16,
477
+ paddingBottom: 14,
478
+ },
479
+ metricCard: {
480
+ backgroundColor: '#FFFFFF',
481
+ paddingVertical: 8,
482
+ paddingHorizontal: 10,
483
+ borderRadius: 6,
484
+ borderLeftWidth: 3,
485
+ width: 130, // fixed width for horizontal scrolling
486
+ shadowColor: '#000',
487
+ shadowOpacity: 0.04,
488
+ shadowRadius: 4,
489
+ shadowOffset: { width: 0, height: 2 },
490
+ elevation: 2,
491
+ alignItems: 'flex-start',
492
+ },
493
+ metricLabel: {
494
+ fontFamily: AppFonts_1.AppFonts.interMedium,
495
+ fontSize: 10,
496
+ color: AppColors_1.AppColors.grayTextWeak,
497
+ textTransform: 'uppercase',
498
+ marginBottom: 4,
499
+ },
500
+ metricValue: {
501
+ fontFamily: AppFonts_1.AppFonts.interBold,
502
+ fontSize: 13,
503
+ },
504
+ tabRow: {
505
+ flexDirection: 'row',
506
+ marginHorizontal: 16,
507
+ marginTop: 6,
508
+ backgroundColor: '#E5E7EB',
509
+ borderRadius: 8,
510
+ padding: 4,
511
+ },
512
+ tabButton: {
513
+ flex: 1,
514
+ flexDirection: 'row',
515
+ alignItems: 'center',
516
+ justifyContent: 'center',
517
+ paddingVertical: 8,
518
+ borderRadius: 6,
519
+ gap: 6,
520
+ },
521
+ tabActive: {
522
+ backgroundColor: '#FFFFFF',
523
+ shadowColor: '#000',
524
+ shadowOpacity: 0.1,
525
+ shadowRadius: 2,
526
+ shadowOffset: { width: 0, height: 1 },
527
+ elevation: 2,
528
+ },
529
+ tabText: {
530
+ fontFamily: AppFonts_1.AppFonts.interMedium,
531
+ fontSize: 13,
532
+ color: AppColors_1.AppColors.grayTextWeak,
533
+ },
534
+ tabTextActive: {
535
+ fontFamily: AppFonts_1.AppFonts.interBold,
536
+ color: AppColors_1.AppColors.primaryBlack,
537
+ },
538
+ tabBadge: {
539
+ backgroundColor: '#D1D5DB',
540
+ paddingHorizontal: 6,
541
+ paddingVertical: 2,
542
+ borderRadius: 10,
543
+ },
544
+ tabBadgeActive: {
545
+ backgroundColor: AppColors_1.AppColors.primaryLight,
546
+ borderWidth: 1,
547
+ borderColor: '#E5E7EB',
548
+ },
549
+ tabBadgeText: {
550
+ fontFamily: AppFonts_1.AppFonts.interBold,
551
+ fontSize: 10,
552
+ color: '#6B7280',
553
+ },
554
+ tabBadgeTextActive: {
555
+ color: AppColors_1.AppColors.primaryBlack,
556
+ },
557
+ });
558
+ exports.default = AnalyticsDetail;