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,730 +0,0 @@
1
- import React, {useEffect, useMemo, useState} from 'react';
2
- import {
3
- Modal,
4
- Pressable,
5
- ScrollView,
6
- StyleSheet,
7
- Text,
8
- TouchableOpacity,
9
- View,
10
- } from 'react-native';
11
- import {useInspector} from './InspectorContext';
12
- import {Method} from '../../types';
13
- import {AppColors} from '../../styles/AppColors';
14
- import {AppFonts} from '../../styles/AppFonts';
15
- import {useTranslation} from '../../i18n';
16
- import {METHOD_COLORS} from '../../constants';
17
- import {
18
- FilterIcon,
19
- CloseWhite,
20
- ClockIcon,
21
- CircleCheckIcon,
22
- CircleAlertIcon,
23
- CircleXIcon,
24
- LayersIcon,
25
- RepeatIcon,
26
- ShieldAlertIcon,
27
- BoltIcon,
28
- GlobeIcon,
29
- LockIcon,
30
- UnlockIcon,
31
- RocketIcon,
32
- TurtleIcon,
33
- HourglassIcon,
34
- PackageIcon,
35
- } from '../NetworkIcons';
36
- import TouchableScale from '../TouchableScale';
37
-
38
- export interface NetworkFilterState {
39
- statusCodes: Set<string>;
40
- methods: Set<string>;
41
- latency: 'all' | 'fast' | 'normal' | 'slow';
42
- protocol: 'all' | 'https' | 'http';
43
- sortBy: 'time_desc' | 'time_asc' | 'duration_desc' | 'duration_asc' | 'size_desc';
44
- }
45
-
46
- export const DEFAULT_NETWORK_FILTERS: NetworkFilterState = {
47
- statusCodes: new Set(['all']),
48
- methods: new Set(['all']),
49
- latency: 'all',
50
- protocol: 'all',
51
- sortBy: 'time_desc',
52
- };
53
-
54
- export const isNetworkFiltersDefault = (f: NetworkFilterState): boolean =>
55
- (f.statusCodes.has('all') || f.statusCodes.size === 0) &&
56
- (f.methods.has('all') || f.methods.size === 0) &&
57
- f.latency === 'all' &&
58
- f.protocol === 'all' &&
59
- f.sortBy === 'time_desc';
60
-
61
- interface NetworkFilterModalProps {
62
- visible: boolean;
63
- onClose: () => void;
64
- filters: NetworkFilterState;
65
- onApply: (filters: NetworkFilterState) => void;
66
- searchQuery?: string;
67
- }
68
-
69
- export const NetworkFilterModal: React.FC<NetworkFilterModalProps> = ({
70
- visible,
71
- onClose,
72
- filters,
73
- onApply,
74
- searchQuery = '',
75
- }) => {
76
- const {t} = useTranslation();
77
- const {logs} = useInspector();
78
-
79
- const [draft, setDraft] = useState<NetworkFilterState>(() => ({
80
- ...filters,
81
- statusCodes: new Set(filters.statusCodes),
82
- methods: new Set(filters.methods),
83
- }));
84
-
85
- useEffect(() => {
86
- if (visible) {
87
- setDraft({
88
- ...filters,
89
- statusCodes: new Set(filters.statusCodes),
90
- methods: new Set(filters.methods),
91
- });
92
- }
93
- }, [visible, filters]);
94
-
95
- // Live count calculators
96
- const counts = useMemo(() => {
97
- const statusMap: Record<string, number> = {
98
- all: logs.length,
99
- '2xx': 0,
100
- '3xx': 0,
101
- '4xx': 0,
102
- '5xx': 0,
103
- failed: 0,
104
- };
105
- const methodMap: Record<string, number> = {all: logs.length};
106
- let fastCount = 0;
107
- let normalCount = 0;
108
- let slowCount = 0;
109
- let httpsCount = 0;
110
- let httpCount = 0;
111
-
112
- for (const log of logs) {
113
- const s = typeof log.status === 'number' ? log.status : parseInt(String(log.status), 10);
114
- if (log.status === 0 || log.status == null) {
115
- statusMap.failed = (statusMap.failed || 0) + 1;
116
- } else if (!isNaN(s)) {
117
- if (s >= 200 && s < 300) statusMap['2xx'] = (statusMap['2xx'] || 0) + 1;
118
- else if (s >= 300 && s < 400) statusMap['3xx'] = (statusMap['3xx'] || 0) + 1;
119
- else if (s >= 400 && s < 500) statusMap['4xx'] = (statusMap['4xx'] || 0) + 1;
120
- else if (s >= 500) statusMap['5xx'] = (statusMap['5xx'] || 0) + 1;
121
- }
122
-
123
- const m = (log.method || 'GET').toUpperCase();
124
- methodMap[m] = (methodMap[m] || 0) + 1;
125
-
126
- const dur = log.duration || 0;
127
- if (dur < 200) fastCount++;
128
- else if (dur <= 500) normalCount++;
129
- else slowCount++;
130
-
131
- if ((log.url || '').toLowerCase().startsWith('https')) httpsCount++;
132
- else httpCount++;
133
- }
134
-
135
- return {
136
- statusMap,
137
- methodMap,
138
- fastCount,
139
- normalCount,
140
- slowCount,
141
- httpsCount,
142
- httpCount,
143
- };
144
- }, [logs]);
145
-
146
- // Count matching results with current draft filters
147
- const previewMatchCount = useMemo(() => {
148
- return logs.filter(log => {
149
- // Status filter
150
- if (!draft.statusCodes.has('all') && draft.statusCodes.size > 0) {
151
- const s = typeof log.status === 'number' ? log.status : parseInt(String(log.status), 10);
152
- let matches = false;
153
- if (draft.statusCodes.has('failed') && (log.status === 0 || log.status == null)) matches = true;
154
- if (draft.statusCodes.has('2xx') && !isNaN(s) && s >= 200 && s < 300) matches = true;
155
- if (draft.statusCodes.has('3xx') && !isNaN(s) && s >= 300 && s < 400) matches = true;
156
- if (draft.statusCodes.has('4xx') && !isNaN(s) && s >= 400 && s < 500) matches = true;
157
- if (draft.statusCodes.has('5xx') && !isNaN(s) && s >= 500) matches = true;
158
- if (!matches) return false;
159
- }
160
-
161
- // Method filter
162
- if (!draft.methods.has('all') && draft.methods.size > 0) {
163
- const m = (log.method || 'GET').toUpperCase();
164
- if (!draft.methods.has(m)) return false;
165
- }
166
-
167
- // Latency filter
168
- const dur = log.duration || 0;
169
- if (draft.latency === 'fast' && dur >= 200) return false;
170
- if (draft.latency === 'normal' && (dur < 200 || dur > 500)) return false;
171
- if (draft.latency === 'slow' && dur <= 500) return false;
172
-
173
- // Protocol filter
174
- const isHttps = (log.url || '').toLowerCase().startsWith('https');
175
- if (draft.protocol === 'https' && !isHttps) return false;
176
- if (draft.protocol === 'http' && isHttps) return false;
177
-
178
- // Search query
179
- if (searchQuery.trim().length > 0) {
180
- const q = searchQuery.toLowerCase();
181
- const u = (log.url || '').toLowerCase();
182
- if (!u.includes(q)) return false;
183
- }
184
-
185
- return true;
186
- }).length;
187
- }, [logs, draft, searchQuery]);
188
-
189
- const toggleStatus = (key: string) => {
190
- setDraft(prev => {
191
- const next = new Set(prev.statusCodes);
192
- if (key === 'all') {
193
- return {...prev, statusCodes: new Set(['all'])};
194
- }
195
- next.delete('all');
196
- if (next.has(key)) {
197
- next.delete(key);
198
- if (next.size === 0) next.add('all');
199
- } else {
200
- next.add(key);
201
- }
202
- return {...prev, statusCodes: next};
203
- });
204
- };
205
-
206
- const toggleMethod = (key: string) => {
207
- setDraft(prev => {
208
- const next = new Set(prev.methods);
209
- if (key === 'all') {
210
- return {...prev, methods: new Set(['all'])};
211
- }
212
- next.delete('all');
213
- if (next.has(key)) {
214
- next.delete(key);
215
- if (next.size === 0) next.add('all');
216
- } else {
217
- next.add(key);
218
- }
219
- return {...prev, methods: next};
220
- });
221
- };
222
-
223
- const handleReset = () => {
224
- setDraft({
225
- statusCodes: new Set(['all']),
226
- methods: new Set(['all']),
227
- latency: 'all',
228
- protocol: 'all',
229
- sortBy: 'time_desc',
230
- });
231
- };
232
-
233
- const handleApply = () => {
234
- onApply(draft);
235
- onClose();
236
- };
237
-
238
- const activeFiltersCount = useMemo(() => {
239
- let count = 0;
240
- if (!draft.statusCodes.has('all') && draft.statusCodes.size > 0) count += draft.statusCodes.size;
241
- if (!draft.methods.has('all') && draft.methods.size > 0) count += draft.methods.size;
242
- if (draft.latency !== 'all') count++;
243
- if (draft.protocol !== 'all') count++;
244
- if (draft.sortBy !== 'time_desc') count++;
245
- return count;
246
- }, [draft]);
247
-
248
- return (
249
- <Modal
250
- visible={visible}
251
- transparent
252
- animationType="fade"
253
- onRequestClose={onClose}>
254
- <Pressable style={styles.overlay} onPress={onClose}>
255
- <Pressable style={styles.modalCard} onPress={e => e.stopPropagation()}>
256
- {/* Header */}
257
- <View style={styles.header}>
258
- <View style={styles.headerLeft}>
259
- <View style={styles.iconCircle}>
260
- <FilterIcon size={16} color={AppColors.purple} />
261
- </View>
262
- <View>
263
- <View style={{flexDirection: 'row', alignItems: 'center', gap: 6}}>
264
- <Text style={styles.title}>Network Filters</Text>
265
- {activeFiltersCount > 0 && (
266
- <View style={styles.activeBadge}>
267
- <Text style={styles.activeBadgeText}>{activeFiltersCount} active</Text>
268
- </View>
269
- )}
270
- </View>
271
- <Text style={styles.subtitle}>Filter requests by status, method & speed</Text>
272
- </View>
273
- </View>
274
- <TouchableOpacity onPress={onClose} hitSlop={10} style={styles.closeBtn}>
275
- <CloseWhite size={14} color={AppColors.grayText} />
276
- </TouchableOpacity>
277
- </View>
278
-
279
- <ScrollView
280
- style={styles.scrollArea}
281
- contentContainerStyle={styles.scrollContent}
282
- showsVerticalScrollIndicator={false}>
283
- {/* Section 1: HTTP Status Codes */}
284
- <View style={styles.section}>
285
- <Text style={styles.sectionTitle}>HTTP STATUS CODE</Text>
286
- <View style={styles.chipsWrap}>
287
- {[
288
- {key: 'all', label: 'All Statuses', color: AppColors.purple, icon: LayersIcon, count: counts.statusMap.all},
289
- {key: '2xx', label: '2xx Success', color: AppColors.greenColor, icon: CircleCheckIcon, count: counts.statusMap['2xx'] || 0},
290
- {key: '3xx', label: '3xx Redirect', color: AppColors.warningIconGold, icon: RepeatIcon, count: counts.statusMap['3xx'] || 0},
291
- {key: '4xx', label: '4xx Client Error', color: AppColors.darkOrange, icon: CircleAlertIcon, count: counts.statusMap['4xx'] || 0},
292
- {key: '5xx', label: '5xx Server Error', color: AppColors.errorColor, icon: CircleXIcon, count: counts.statusMap['5xx'] || 0},
293
- {key: 'failed', label: 'Network Failed / 0', color: AppColors.errorColor, icon: ShieldAlertIcon, count: counts.statusMap.failed || 0},
294
- ].map(item => {
295
- const isSelected = draft.statusCodes.has(item.key);
296
- const IconComp = item.icon;
297
- return (
298
- <TouchableOpacity
299
- key={item.key}
300
- activeOpacity={0.7}
301
- onPress={() => toggleStatus(item.key)}
302
- style={[
303
- styles.chip,
304
- isSelected && {
305
- backgroundColor: `${item.color}15`,
306
- borderColor: item.color,
307
- },
308
- ]}>
309
- <IconComp size={13} color={isSelected ? item.color : AppColors.grayTextWeak} />
310
- <Text
311
- style={[
312
- styles.chipLabel,
313
- isSelected && {color: item.color, fontFamily: AppFonts.interBold},
314
- ]}>
315
- {item.label}
316
- </Text>
317
- <View
318
- style={[
319
- styles.countPill,
320
- isSelected && {backgroundColor: `${item.color}25`},
321
- ]}>
322
- <Text
323
- style={[
324
- styles.countPillText,
325
- isSelected && {color: item.color},
326
- ]}>
327
- {item.count}
328
- </Text>
329
- </View>
330
- </TouchableOpacity>
331
- );
332
- })}
333
- </View>
334
- </View>
335
-
336
- {/* Section 2: HTTP Method */}
337
- <View style={styles.section}>
338
- <Text style={styles.sectionTitle}>HTTP METHOD</Text>
339
- <View style={styles.chipsWrap}>
340
- <TouchableOpacity
341
- activeOpacity={0.7}
342
- onPress={() => toggleMethod('all')}
343
- style={[
344
- styles.chip,
345
- draft.methods.has('all') && {
346
- backgroundColor: `${AppColors.purple}15`,
347
- borderColor: AppColors.purple,
348
- },
349
- ]}>
350
- <LayersIcon size={12} color={draft.methods.has('all') ? AppColors.purple : AppColors.grayTextWeak} />
351
- <Text
352
- style={[
353
- styles.chipLabel,
354
- draft.methods.has('all') && {color: AppColors.purple, fontFamily: AppFonts.interBold},
355
- ]}>
356
- All Methods
357
- </Text>
358
- <View style={[styles.countPill, draft.methods.has('all') && {backgroundColor: `${AppColors.purple}25`}]}>
359
- <Text style={[styles.countPillText, draft.methods.has('all') && {color: AppColors.purple}]}>
360
- {counts.methodMap.all}
361
- </Text>
362
- </View>
363
- </TouchableOpacity>
364
-
365
- {(['GET', 'POST', 'PUT', 'DELETE', 'PATCH', 'QUERY', 'OPTIONS', 'HEAD'] as const).map(m => {
366
- const isSelected = draft.methods.has(m);
367
- const mColor = METHOD_COLORS[m as Method] || AppColors.grayText;
368
- const count = counts.methodMap[m] || 0;
369
- return (
370
- <TouchableOpacity
371
- key={m}
372
- activeOpacity={0.7}
373
- onPress={() => toggleMethod(m)}
374
- style={[
375
- styles.chip,
376
- isSelected && {
377
- backgroundColor: `${mColor}18`,
378
- borderColor: mColor,
379
- },
380
- ]}>
381
- <View style={[styles.methodDot, {backgroundColor: mColor}]} />
382
- <Text
383
- style={[
384
- styles.chipLabel,
385
- isSelected && {color: mColor, fontFamily: AppFonts.interBold},
386
- ]}>
387
- {m}
388
- </Text>
389
- <View
390
- style={[
391
- styles.countPill,
392
- isSelected && {backgroundColor: `${mColor}25`},
393
- ]}>
394
- <Text
395
- style={[
396
- styles.countPillText,
397
- isSelected && {color: mColor},
398
- ]}>
399
- {count}
400
- </Text>
401
- </View>
402
- </TouchableOpacity>
403
- );
404
- })}
405
- </View>
406
- </View>
407
-
408
- {/* Section 3: Latency & Speed */}
409
- <View style={styles.section}>
410
- <Text style={styles.sectionTitle}>LATENCY & SPEED</Text>
411
- <View style={styles.chipsWrap}>
412
- {[
413
- {key: 'all' as const, label: 'All Speeds', color: AppColors.purple, icon: LayersIcon},
414
- {key: 'fast' as const, label: 'Fast (<200ms)', color: AppColors.greenColor, icon: BoltIcon, count: counts.fastCount},
415
- {key: 'normal' as const, label: 'Normal (200-500ms)', color: AppColors.skyBlue, icon: ClockIcon, count: counts.normalCount},
416
- {key: 'slow' as const, label: 'Slow (>500ms)', color: AppColors.errorColor, icon: CircleAlertIcon, count: counts.slowCount},
417
- ].map(item => {
418
- const isSelected = draft.latency === item.key;
419
- const IconComp = item.icon;
420
- return (
421
- <TouchableOpacity
422
- key={item.key}
423
- activeOpacity={0.7}
424
- onPress={() => setDraft(prev => ({...prev, latency: item.key}))}
425
- style={[
426
- styles.chip,
427
- isSelected && {
428
- backgroundColor: `${item.color}15`,
429
- borderColor: item.color,
430
- },
431
- ]}>
432
- <IconComp
433
- size={13}
434
- color={isSelected ? item.color : AppColors.grayTextWeak}
435
- />
436
- <Text
437
- style={[
438
- styles.chipLabel,
439
- isSelected && {color: item.color, fontFamily: AppFonts.interBold},
440
- ]}>
441
- {item.label}
442
- </Text>
443
- {item.count != null && (
444
- <View style={[styles.countPill, isSelected && {backgroundColor: `${item.color}25`}]}>
445
- <Text style={[styles.countPillText, isSelected && {color: item.color}]}>
446
- {item.count}
447
- </Text>
448
- </View>
449
- )}
450
- </TouchableOpacity>
451
- );
452
- })}
453
- </View>
454
- </View>
455
-
456
- {/* Section 4: Protocol (HTTPS / HTTP) */}
457
- <View style={styles.section}>
458
- <Text style={styles.sectionTitle}>PROTOCOL</Text>
459
- <View style={styles.chipsWrap}>
460
- {[
461
- {key: 'all' as const, label: 'All Protocols', color: AppColors.purple, icon: GlobeIcon},
462
- {key: 'https' as const, label: 'HTTPS Secure', color: AppColors.mintGreenText, icon: LockIcon, count: counts.httpsCount},
463
- {key: 'http' as const, label: 'HTTP Insecure', color: AppColors.amber700, icon: UnlockIcon, count: counts.httpCount},
464
- ].map(item => {
465
- const isSelected = draft.protocol === item.key;
466
- const IconComp = item.icon;
467
- return (
468
- <TouchableOpacity
469
- key={item.key}
470
- activeOpacity={0.7}
471
- onPress={() => setDraft(prev => ({...prev, protocol: item.key}))}
472
- style={[
473
- styles.chip,
474
- isSelected && {
475
- backgroundColor: `${item.color}15`,
476
- borderColor: item.color,
477
- },
478
- ]}>
479
- <IconComp
480
- size={13}
481
- color={isSelected ? item.color : AppColors.grayTextWeak}
482
- />
483
- <Text
484
- style={[
485
- styles.chipLabel,
486
- isSelected && {color: item.color, fontFamily: AppFonts.interBold},
487
- ]}>
488
- {item.label}
489
- </Text>
490
- {item.count != null && (
491
- <View style={[styles.countPill, isSelected && {backgroundColor: `${item.color}25`}]}>
492
- <Text style={[styles.countPillText, isSelected && {color: item.color}]}>
493
- {item.count}
494
- </Text>
495
- </View>
496
- )}
497
- </TouchableOpacity>
498
- );
499
- })}
500
- </View>
501
- </View>
502
-
503
- {/* Section 5: Sort By */}
504
- <View style={styles.section}>
505
- <Text style={styles.sectionTitle}>SORT BY</Text>
506
- <View style={styles.chipsWrap}>
507
- {[
508
- {key: 'time_desc' as const, label: 'Newest First (Default)', icon: ClockIcon},
509
- {key: 'time_asc' as const, label: 'Oldest First', icon: HourglassIcon},
510
- {key: 'duration_desc' as const, label: 'Slowest Response', icon: TurtleIcon},
511
- {key: 'duration_asc' as const, label: 'Fastest Response', icon: RocketIcon},
512
- {key: 'size_desc' as const, label: 'Largest Response Size', icon: PackageIcon},
513
- ].map(item => {
514
- const isSelected = draft.sortBy === item.key;
515
- const IconComp = item.icon;
516
- return (
517
- <TouchableOpacity
518
- key={item.key}
519
- activeOpacity={0.7}
520
- onPress={() => setDraft(prev => ({...prev, sortBy: item.key}))}
521
- style={[
522
- styles.chip,
523
- isSelected && {
524
- backgroundColor: `${AppColors.purple}15`,
525
- borderColor: AppColors.purple,
526
- },
527
- ]}>
528
- <IconComp
529
- size={13}
530
- color={isSelected ? AppColors.purple : AppColors.grayTextWeak}
531
- />
532
- <Text
533
- style={[
534
- styles.chipLabel,
535
- isSelected && {color: AppColors.purple, fontFamily: AppFonts.interBold},
536
- ]}>
537
- {item.label}
538
- </Text>
539
- </TouchableOpacity>
540
- );
541
- })}
542
- </View>
543
- </View>
544
- </ScrollView>
545
-
546
- {/* Footer Action Buttons */}
547
- <View style={styles.footer}>
548
- <TouchableScale onPress={handleReset} style={styles.resetBtn}>
549
- <Text style={styles.resetBtnText}>Reset All</Text>
550
- </TouchableScale>
551
-
552
- <TouchableScale onPress={handleApply} style={styles.applyBtn}>
553
- <Text style={styles.applyBtnText}>
554
- Apply ({previewMatchCount} Request{previewMatchCount === 1 ? '' : 's'})
555
- </Text>
556
- </TouchableScale>
557
- </View>
558
- </Pressable>
559
- </Pressable>
560
- </Modal>
561
- );
562
- };
563
-
564
- const styles = StyleSheet.create({
565
- overlay: {
566
- flex: 1,
567
- backgroundColor: 'rgba(0, 0, 0, 0.55)',
568
- justifyContent: 'flex-end',
569
- },
570
- modalCard: {
571
- backgroundColor: AppColors.primaryLight,
572
- borderTopLeftRadius: 20,
573
- borderTopRightRadius: 20,
574
- maxHeight: '85%',
575
- shadowColor: AppColors.black,
576
- shadowOffset: {width: 0, height: -4},
577
- shadowOpacity: 0.15,
578
- shadowRadius: 10,
579
- elevation: 8,
580
- },
581
- header: {
582
- flexDirection: 'row',
583
- alignItems: 'center',
584
- justifyContent: 'space-between',
585
- paddingHorizontal: 16,
586
- paddingTop: 16,
587
- paddingBottom: 12,
588
- borderBottomWidth: 1,
589
- borderBottomColor: AppColors.grayBorderSecondary,
590
- },
591
- headerLeft: {
592
- flexDirection: 'row',
593
- alignItems: 'center',
594
- gap: 10,
595
- flex: 1,
596
- },
597
- iconCircle: {
598
- width: 34,
599
- height: 34,
600
- borderRadius: 10,
601
- backgroundColor: `${AppColors.purple}15`,
602
- alignItems: 'center',
603
- justifyContent: 'center',
604
- },
605
- title: {
606
- fontFamily: AppFonts.interBold,
607
- fontSize: 16,
608
- color: AppColors.primaryBlack,
609
- },
610
- subtitle: {
611
- fontFamily: AppFonts.interRegular,
612
- fontSize: 11,
613
- color: AppColors.grayText,
614
- marginTop: 1,
615
- },
616
- activeBadge: {
617
- backgroundColor: `${AppColors.purple}20`,
618
- paddingHorizontal: 6,
619
- paddingVertical: 1.5,
620
- borderRadius: 8,
621
- borderWidth: 1,
622
- borderColor: `${AppColors.purple}40`,
623
- },
624
- activeBadgeText: {
625
- fontFamily: AppFonts.interBold,
626
- fontSize: 9.5,
627
- color: AppColors.purple,
628
- },
629
- closeBtn: {
630
- padding: 6,
631
- },
632
- scrollArea: {
633
- maxHeight: 460,
634
- },
635
- scrollContent: {
636
- padding: 16,
637
- gap: 16,
638
- },
639
- section: {
640
- gap: 8,
641
- },
642
- sectionTitle: {
643
- fontFamily: AppFonts.interBold,
644
- fontSize: 11,
645
- color: AppColors.grayTextWeak,
646
- letterSpacing: 0.8,
647
- },
648
- chipsWrap: {
649
- flexDirection: 'row',
650
- flexWrap: 'wrap',
651
- gap: 8,
652
- },
653
- chip: {
654
- flexDirection: 'row',
655
- alignItems: 'center',
656
- gap: 6,
657
- paddingHorizontal: 10,
658
- paddingVertical: 6,
659
- borderRadius: 8,
660
- backgroundColor: AppColors.grayBackground,
661
- borderWidth: 1,
662
- borderColor: AppColors.grayBorderSecondary,
663
- },
664
- chipLabel: {
665
- fontFamily: AppFonts.interMedium,
666
- fontSize: 12,
667
- color: AppColors.primaryBlack,
668
- },
669
- methodDot: {
670
- width: 6.5,
671
- height: 6.5,
672
- borderRadius: 3.5,
673
- },
674
- countPill: {
675
- backgroundColor: `${AppColors.grayBorderSecondary}50`,
676
- paddingHorizontal: 5,
677
- paddingVertical: 1,
678
- borderRadius: 6,
679
- },
680
- countPillText: {
681
- fontFamily: AppFonts.interBold,
682
- fontSize: 9.5,
683
- color: AppColors.grayText,
684
- },
685
- footer: {
686
- flexDirection: 'row',
687
- alignItems: 'center',
688
- gap: 10,
689
- paddingHorizontal: 16,
690
- paddingVertical: 14,
691
- borderTopWidth: 1,
692
- borderTopColor: AppColors.grayBorderSecondary,
693
- backgroundColor: AppColors.primaryLight,
694
- },
695
- resetBtn: {
696
- flex: 1,
697
- paddingVertical: 11,
698
- borderRadius: 10,
699
- borderWidth: 1,
700
- borderColor: AppColors.grayBorderSecondary,
701
- alignItems: 'center',
702
- justifyContent: 'center',
703
- backgroundColor: AppColors.grayBackground,
704
- },
705
- resetBtnText: {
706
- fontFamily: AppFonts.interBold,
707
- fontSize: 13,
708
- color: AppColors.grayTextStrong,
709
- },
710
- applyBtn: {
711
- flex: 2,
712
- paddingVertical: 11,
713
- borderRadius: 10,
714
- alignItems: 'center',
715
- justifyContent: 'center',
716
- backgroundColor: AppColors.purple,
717
- shadowColor: AppColors.purple,
718
- shadowOffset: {width: 0, height: 2},
719
- shadowOpacity: 0.25,
720
- shadowRadius: 4,
721
- elevation: 3,
722
- },
723
- applyBtnText: {
724
- fontFamily: AppFonts.interBold,
725
- fontSize: 13,
726
- color: AppColors.white,
727
- },
728
- });
729
-
730
- export default NetworkFilterModal;