react-native-inapp-inspector 2.3.18 → 2.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +57 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.d.ts +2 -0
- package/dist/commonjs/capture.js +1 -32
- package/dist/commonjs/components/AnalyticsDetail.js +92 -623
- package/dist/commonjs/components/AnalyticsEventCard.js +54 -350
- package/dist/commonjs/components/AnalyticsGraph.js +70 -370
- package/dist/commonjs/components/AnimatedEntrance.js +1 -11
- package/dist/commonjs/components/AppHeaderLogo.js +7 -134
- package/dist/commonjs/components/BrandCircleIcon.js +73 -118
- package/dist/commonjs/components/BrandSquareIcon.js +63 -108
- package/dist/commonjs/components/CodeSnippet.js +48 -623
- package/dist/commonjs/components/ConsoleLogCard.js +63 -537
- package/dist/commonjs/components/CopyButton.js +3 -89
- package/dist/commonjs/components/DiffViewer.js +19 -83
- package/dist/commonjs/components/DomainHeader.js +27 -127
- package/dist/commonjs/components/EmptyState.d.ts +1 -0
- package/dist/commonjs/components/EmptyState.js +10 -87
- package/dist/commonjs/components/EndOfListFooter.js +7 -81
- package/dist/commonjs/components/ErrorBoundary.js +72 -566
- package/dist/commonjs/components/HeadersSection.js +31 -110
- package/dist/commonjs/components/HighlightText.js +17 -58
- package/dist/commonjs/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/commonjs/components/Inspector/AboutModal.js +351 -0
- package/dist/commonjs/components/Inspector/AnalyticsFilterModal.js +98 -797
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +284 -930
- package/dist/commonjs/components/Inspector/BundleTab.js +551 -2918
- package/dist/commonjs/components/Inspector/ConsoleTab.js +79 -492
- package/dist/commonjs/components/Inspector/CrashDetail.js +123 -672
- package/dist/commonjs/components/Inspector/CrashFilterModal.js +66 -498
- package/dist/commonjs/components/Inspector/CrashTab.js +98 -670
- package/dist/commonjs/components/Inspector/DebuggingTab.js +64 -871
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +85 -54
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.js +167 -521
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +219 -1093
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +60 -332
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +136 -278
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +134 -361
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +96 -432
- package/dist/commonjs/components/Inspector/NetworkFilterModal.js +60 -576
- package/dist/commonjs/components/Inspector/NetworkTab.js +84 -514
- package/dist/commonjs/components/Inspector/NpmStarPrompt.js +17 -433
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +25 -298
- package/dist/commonjs/components/Inspector/PerformanceTab.js +182 -1397
- package/dist/commonjs/components/Inspector/ReduxDetail.js +188 -1089
- package/dist/commonjs/components/Inspector/ReduxTab.js +85 -701
- package/dist/commonjs/components/Inspector/SettingsPanel.js +431 -3431
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Inspector/StorageTab.js +93 -826
- package/dist/commonjs/components/Inspector/TabBar.js +47 -183
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +34 -408
- package/dist/commonjs/components/JsonViewer.js +168 -380
- package/dist/commonjs/components/LogCard.js +57 -567
- package/dist/commonjs/components/LogSyntaxHighlighter.js +11 -130
- package/dist/commonjs/components/MetaAccordion.js +69 -238
- package/dist/commonjs/components/MiniBarChart.js +3 -56
- package/dist/commonjs/components/MiniLineChart.js +3 -58
- package/dist/commonjs/components/NetworkIcons.d.ts +7 -0
- package/dist/commonjs/components/NetworkIcons.js +479 -997
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -61
- package/dist/commonjs/components/SkeletonPlaceholder.js +11 -180
- package/dist/commonjs/components/Slider.js +15 -243
- package/dist/commonjs/components/SourcePageCard.js +30 -89
- package/dist/commonjs/components/Toast.js +5 -147
- package/dist/commonjs/components/TouchableScale.js +3 -24
- package/dist/commonjs/components/TreeNode.js +55 -130
- package/dist/commonjs/console.js +1 -16
- package/dist/commonjs/constants/index.js +1 -32
- package/dist/commonjs/constants/telemetryConfig.js +1 -6
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -4
- package/dist/commonjs/crash.js +1 -23
- package/dist/commonjs/customHooks/analyticsLogger.js +1 -250
- package/dist/commonjs/customHooks/bundleAnalyzer.js +1 -957
- package/dist/commonjs/customHooks/consoleLogger.js +6 -445
- package/dist/commonjs/customHooks/crashHandler.js +7 -656
- package/dist/commonjs/customHooks/logFilters.js +1 -23
- package/dist/commonjs/customHooks/networkLogger.js +2 -536
- package/dist/commonjs/customHooks/performanceTracker.js +63 -750
- package/dist/commonjs/customHooks/reduxLogger.js +2 -313
- package/dist/commonjs/customHooks/storageInspector.js +1 -435
- package/dist/commonjs/customHooks/useAccordion.js +1 -18
- package/dist/commonjs/decorators/index.js +1 -100
- package/dist/commonjs/helpers/gaAnalyticsRegistry.js +1 -148
- package/dist/commonjs/helpers/index.js +8 -921
- package/dist/commonjs/helpers/memoryManager.js +1 -99
- package/dist/commonjs/helpers/qrGenerator.js +1 -367
- package/dist/commonjs/helpers/remoteConfig.js +1 -165
- package/dist/commonjs/helpers/searchQueryParser.js +1 -62
- package/dist/commonjs/helpers/settingsStore.js +1 -144
- package/dist/commonjs/helpers/telemetry.js +1 -501
- package/dist/commonjs/helpers/toast.js +1 -20
- package/dist/commonjs/i18n/index.js +1 -90
- package/dist/commonjs/i18n/locales/en.json +1 -1122
- package/dist/commonjs/index.js +5 -2153
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +3 -0
- package/dist/commonjs/native/NativeInspector.js +1 -402
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeNetworkInspector.js +1 -4
- package/dist/commonjs/network.js +1 -13
- package/dist/commonjs/performance.js +1 -29
- package/dist/commonjs/redux.js +1 -20
- package/dist/commonjs/storage.js +1 -14
- package/dist/commonjs/styles/AppColors.js +1 -423
- package/dist/commonjs/styles/AppFonts.js +1 -17
- package/dist/commonjs/styles/common.js +1 -190
- package/dist/commonjs/styles/index.d.ts +6 -0
- package/dist/commonjs/styles/index.js +1 -1589
- package/dist/commonjs/types/enums.d.ts +2 -1
- package/dist/commonjs/types/enums.js +1 -150
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +7 -0
- package/dist/commonjs/types/interfaces.js +1 -2
- package/dist/esm/analytics.js +1 -2
- package/dist/esm/bundle.js +1 -2
- package/dist/esm/capture.d.ts +2 -0
- package/dist/esm/capture.js +1 -29
- package/dist/esm/components/AnalyticsDetail.js +171 -664
- package/dist/esm/components/AnalyticsEventCard.js +77 -335
- package/dist/esm/components/AnalyticsGraph.js +95 -357
- package/dist/esm/components/AnimatedEntrance.js +1 -6
- package/dist/esm/components/AppHeaderLogo.js +7 -94
- package/dist/esm/components/BrandCircleIcon.js +114 -119
- package/dist/esm/components/BrandSquareIcon.js +73 -78
- package/dist/esm/components/CodeSnippet.js +58 -595
- package/dist/esm/components/ConsoleLogCard.js +91 -526
- package/dist/esm/components/CopyButton.js +3 -51
- package/dist/esm/components/DiffViewer.js +22 -48
- package/dist/esm/components/DomainHeader.js +43 -138
- package/dist/esm/components/EmptyState.d.ts +1 -0
- package/dist/esm/components/EmptyState.js +17 -56
- package/dist/esm/components/EndOfListFooter.js +15 -83
- package/dist/esm/components/ErrorBoundary.js +125 -582
- package/dist/esm/components/HeadersSection.js +52 -93
- package/dist/esm/components/HighlightText.js +17 -53
- package/dist/esm/components/Inspector/AboutModal.d.ts +6 -0
- package/dist/esm/components/Inspector/AboutModal.js +351 -0
- package/dist/esm/components/Inspector/AnalyticsFilterModal.js +225 -886
- package/dist/esm/components/Inspector/AnalyticsTab.js +296 -904
- package/dist/esm/components/Inspector/BundleTab.js +1175 -3502
- package/dist/esm/components/Inspector/ConsoleTab.js +113 -488
- package/dist/esm/components/Inspector/CrashDetail.js +236 -747
- package/dist/esm/components/Inspector/CrashFilterModal.js +149 -541
- package/dist/esm/components/Inspector/CrashTab.js +177 -711
- package/dist/esm/components/Inspector/DebuggingTab.js +156 -923
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +85 -49
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +9 -0
- package/dist/esm/components/Inspector/FeedbackModal.js +182 -499
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +309 -1145
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +86 -320
- package/dist/esm/components/Inspector/MediaGalleryTab.js +157 -259
- package/dist/esm/components/Inspector/MediaPreviewModal.js +153 -340
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +141 -472
- package/dist/esm/components/Inspector/NetworkFilterModal.js +122 -597
- package/dist/esm/components/Inspector/NetworkTab.js +125 -517
- package/dist/esm/components/Inspector/NpmStarPrompt.js +58 -434
- package/dist/esm/components/Inspector/NpmUpdateToast.js +45 -281
- package/dist/esm/components/Inspector/PerformanceTab.js +393 -1570
- package/dist/esm/components/Inspector/ReduxDetail.js +307 -1170
- package/dist/esm/components/Inspector/ReduxTab.js +144 -722
- package/dist/esm/components/Inspector/SettingsPanel.js +647 -3609
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Inspector/StorageTab.js +172 -866
- package/dist/esm/components/Inspector/TabBar.js +52 -183
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +79 -416
- package/dist/esm/components/JsonViewer.js +179 -353
- package/dist/esm/components/LogCard.js +93 -565
- package/dist/esm/components/LogSyntaxHighlighter.js +11 -123
- package/dist/esm/components/MetaAccordion.js +136 -267
- package/dist/esm/components/MiniBarChart.js +3 -18
- package/dist/esm/components/MiniLineChart.js +3 -20
- package/dist/esm/components/NetworkIcons.d.ts +7 -0
- package/dist/esm/components/NetworkIcons.js +481 -817
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -57
- package/dist/esm/components/SkeletonPlaceholder.js +30 -163
- package/dist/esm/components/Slider.js +24 -213
- package/dist/esm/components/SourcePageCard.js +65 -86
- package/dist/esm/components/Toast.js +10 -117
- package/dist/esm/components/TouchableScale.js +3 -19
- package/dist/esm/components/TreeNode.js +58 -95
- package/dist/esm/console.js +1 -2
- package/dist/esm/constants/index.js +1 -28
- package/dist/esm/constants/telemetryConfig.js +1 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/crash.js +1 -2
- package/dist/esm/customHooks/analyticsLogger.js +1 -230
- package/dist/esm/customHooks/bundleAnalyzer.js +1 -944
- package/dist/esm/customHooks/consoleLogger.js +6 -432
- package/dist/esm/customHooks/crashHandler.js +7 -630
- package/dist/esm/customHooks/logFilters.js +1 -20
- package/dist/esm/customHooks/networkLogger.js +2 -519
- package/dist/esm/customHooks/performanceTracker.js +63 -723
- package/dist/esm/customHooks/reduxLogger.js +2 -293
- package/dist/esm/customHooks/storageInspector.js +1 -418
- package/dist/esm/customHooks/useAccordion.js +1 -16
- package/dist/esm/decorators/index.js +1 -95
- package/dist/esm/helpers/gaAnalyticsRegistry.js +1 -143
- package/dist/esm/helpers/index.js +8 -861
- package/dist/esm/helpers/memoryManager.js +1 -91
- package/dist/esm/helpers/qrGenerator.js +1 -364
- package/dist/esm/helpers/remoteConfig.js +1 -160
- package/dist/esm/helpers/searchQueryParser.js +1 -59
- package/dist/esm/helpers/settingsStore.js +1 -134
- package/dist/esm/helpers/telemetry.js +1 -489
- package/dist/esm/helpers/toast.js +1 -15
- package/dist/esm/i18n/index.js +1 -78
- package/dist/esm/i18n/locales/en.json +1 -1122
- package/dist/esm/index.js +7 -1967
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +3 -0
- package/dist/esm/native/NativeInspector.js +1 -370
- package/dist/esm/native/NativeNetworkInspector.d.ts +1 -0
- package/dist/esm/native/NativeNetworkInspector.js +1 -2
- package/dist/esm/network.js +1 -1
- package/dist/esm/performance.js +1 -2
- package/dist/esm/redux.js +1 -1
- package/dist/esm/storage.js +1 -1
- package/dist/esm/styles/AppColors.js +1 -417
- package/dist/esm/styles/AppFonts.js +1 -13
- package/dist/esm/styles/common.js +1 -186
- package/dist/esm/styles/index.d.ts +6 -0
- package/dist/esm/styles/index.js +1 -1551
- package/dist/esm/types/enums.d.ts +2 -1
- package/dist/esm/types/enums.js +1 -147
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +7 -0
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +253 -136
- package/package.json +5 -3
- package/react-native-inapp-inspector.podspec +1 -1
- package/src/native/NativeInspector.ts +17 -0
- package/src/native/NativeNetworkInspector.ts +1 -0
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -101
- package/src/components/AnalyticsDetail.tsx +0 -870
- package/src/components/AnalyticsEventCard.tsx +0 -444
- package/src/components/AnalyticsGraph.tsx +0 -583
- package/src/components/AnimatedEntrance.tsx +0 -20
- package/src/components/AppHeaderLogo.tsx +0 -143
- package/src/components/BrandCircleIcon.tsx +0 -144
- package/src/components/BrandSquareIcon.tsx +0 -184
- package/src/components/CodeSnippet.tsx +0 -725
- package/src/components/ConsoleLogCard.tsx +0 -679
- package/src/components/CopyButton.tsx +0 -87
- package/src/components/DiffViewer.tsx +0 -82
- package/src/components/DomainHeader.tsx +0 -224
- package/src/components/EmptyState.tsx +0 -95
- package/src/components/EndOfListFooter.tsx +0 -100
- package/src/components/ErrorBoundary.tsx +0 -688
- package/src/components/HeadersSection.tsx +0 -172
- package/src/components/HighlightText.tsx +0 -100
- package/src/components/Inspector/AnalyticsFilterModal.tsx +0 -1250
- package/src/components/Inspector/AnalyticsTab.tsx +0 -1362
- package/src/components/Inspector/BundleTab.tsx +0 -4768
- package/src/components/Inspector/ConsoleTab.tsx +0 -726
- package/src/components/Inspector/CrashDetail.tsx +0 -997
- package/src/components/Inspector/CrashFilterModal.tsx +0 -721
- package/src/components/Inspector/CrashTab.tsx +0 -933
- package/src/components/Inspector/DebuggingTab.tsx +0 -1103
- package/src/components/Inspector/DeviceInfoTab.tsx +0 -1397
- package/src/components/Inspector/FabLauncher.tsx +0 -80
- package/src/components/Inspector/FeatureUnderDevNotice.tsx +0 -94
- package/src/components/Inspector/FeedbackModal.tsx +0 -626
- package/src/components/Inspector/InspectorContext.tsx +0 -28
- package/src/components/Inspector/InspectorHeader.tsx +0 -1545
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -459
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -355
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -435
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -795
- package/src/components/Inspector/NetworkFilterModal.tsx +0 -730
- package/src/components/Inspector/NetworkTab.tsx +0 -820
- package/src/components/Inspector/NpmStarPrompt.tsx +0 -532
- package/src/components/Inspector/NpmUpdateToast.tsx +0 -387
- package/src/components/Inspector/PerformanceTab.tsx +0 -1967
- package/src/components/Inspector/ReduxDetail.tsx +0 -1651
- package/src/components/Inspector/ReduxTab.tsx +0 -987
- package/src/components/Inspector/SettingsPanel.tsx +0 -4580
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -263
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -547
- package/src/components/LogCard.tsx +0 -694
- package/src/components/LogSyntaxHighlighter.tsx +0 -178
- package/src/components/MetaAccordion.tsx +0 -355
- package/src/components/MiniBarChart.tsx +0 -42
- package/src/components/MiniLineChart.tsx +0 -33
- package/src/components/NetworkIcons.tsx +0 -2599
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -83
- package/src/components/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Slider.tsx +0 -300
- package/src/components/SourcePageCard.tsx +0 -150
- package/src/components/Toast.tsx +0 -131
- package/src/components/TouchableScale.tsx +0 -61
- package/src/components/TreeNode.tsx +0 -171
- package/src/console.ts +0 -24
- package/src/constants/index.ts +0 -41
- package/src/constants/telemetryConfig.ts +0 -4
- package/src/constants/version.ts +0 -3
- package/src/crash.ts +0 -32
- package/src/customHooks/analyticsLogger.ts +0 -336
- package/src/customHooks/bundleAnalyzer.ts +0 -1256
- package/src/customHooks/consoleLogger.ts +0 -530
- package/src/customHooks/crashHandler.ts +0 -944
- package/src/customHooks/logFilters.ts +0 -32
- package/src/customHooks/networkLogger.ts +0 -624
- package/src/customHooks/performanceTracker.ts +0 -1014
- package/src/customHooks/reduxLogger.ts +0 -406
- package/src/customHooks/storageInspector.ts +0 -513
- package/src/customHooks/useAccordion.tsx +0 -27
- package/src/decorators/index.ts +0 -184
- package/src/helpers/gaAnalyticsRegistry.ts +0 -204
- package/src/helpers/index.ts +0 -1092
- package/src/helpers/memoryManager.ts +0 -138
- package/src/helpers/qrGenerator.ts +0 -430
- package/src/helpers/remoteConfig.ts +0 -212
- package/src/helpers/searchQueryParser.ts +0 -84
- package/src/helpers/settingsStore.ts +0 -171
- package/src/helpers/telemetry.ts +0 -568
- package/src/helpers/toast.ts +0 -17
- package/src/i18n/index.ts +0 -104
- package/src/i18n/locales/en.json +0 -1125
- package/src/index.tsx +0 -2635
- package/src/metro.ts +0 -598
- package/src/network.ts +0 -22
- package/src/performance.ts +0 -38
- package/src/redux.ts +0 -23
- package/src/storage.ts +0 -18
- package/src/styles/AppColors.ts +0 -455
- package/src/styles/AppFonts.ts +0 -26
- package/src/styles/common.ts +0 -209
- package/src/styles/index.ts +0 -1606
- package/src/types/enums.ts +0 -208
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -530
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React, {useState, useCallback} from 'react';
|
|
2
|
-
import {Share} from 'react-native';
|
|
3
|
-
|
|
4
|
-
// Components
|
|
5
|
-
import TouchableScale from './TouchableScale';
|
|
6
|
-
|
|
7
|
-
// Helpers
|
|
8
|
-
import {copyToClipboard} from '../helpers';
|
|
9
|
-
|
|
10
|
-
import {triggerNativeHaptic} from '../native/NativeInspector';
|
|
11
|
-
|
|
12
|
-
// Assets
|
|
13
|
-
import {TerminalIcon, FetchIcon, CopyIcon, CheckIcon} from './NetworkIcons';
|
|
14
|
-
|
|
15
|
-
// Stylesheet
|
|
16
|
-
import {AppColors} from '../styles/AppColors';
|
|
17
|
-
import styles from '../styles';
|
|
18
|
-
|
|
19
|
-
// Type Definition
|
|
20
|
-
import {CopyButtonProps} from '../types';
|
|
21
|
-
|
|
22
|
-
const CopyButton = React.memo(({value, label, iconType = 'copy'}: CopyButtonProps) => {
|
|
23
|
-
const [copied, setCopied] = useState<boolean>(false);
|
|
24
|
-
|
|
25
|
-
const handlePress = useCallback(() => {
|
|
26
|
-
triggerNativeHaptic('success');
|
|
27
|
-
const resolvedValue = typeof value === 'function' ? (value as Function)() : value;
|
|
28
|
-
copyToClipboard(resolvedValue, label);
|
|
29
|
-
setCopied(true);
|
|
30
|
-
setTimeout(() => setCopied(false), 1200);
|
|
31
|
-
}, [value, label]);
|
|
32
|
-
|
|
33
|
-
const handleLongPress = useCallback(() => {
|
|
34
|
-
try {
|
|
35
|
-
triggerNativeHaptic('medium');
|
|
36
|
-
const resolvedValue = typeof value === 'function' ? (value as Function)() : value;
|
|
37
|
-
const textToShare =
|
|
38
|
-
typeof resolvedValue === 'string'
|
|
39
|
-
? resolvedValue
|
|
40
|
-
: JSON.stringify(resolvedValue, null, 2);
|
|
41
|
-
Share.share({
|
|
42
|
-
message: textToShare,
|
|
43
|
-
title: label,
|
|
44
|
-
});
|
|
45
|
-
} catch {}
|
|
46
|
-
}, [value, label]);
|
|
47
|
-
|
|
48
|
-
const containerStyle = [
|
|
49
|
-
styles.iconSquareBtn,
|
|
50
|
-
copied && styles.iconSquareBtnSuccess,
|
|
51
|
-
];
|
|
52
|
-
|
|
53
|
-
const IconComponent =
|
|
54
|
-
iconType === 'terminal'
|
|
55
|
-
? TerminalIcon
|
|
56
|
-
: iconType === 'fetch'
|
|
57
|
-
? FetchIcon
|
|
58
|
-
: CopyIcon;
|
|
59
|
-
|
|
60
|
-
return (
|
|
61
|
-
<TouchableScale
|
|
62
|
-
accessible={true}
|
|
63
|
-
accessibilityRole="button"
|
|
64
|
-
accessibilityLabel={
|
|
65
|
-
label
|
|
66
|
-
? copied
|
|
67
|
-
? `${label} copied`
|
|
68
|
-
: `Copy ${label}`
|
|
69
|
-
: copied
|
|
70
|
-
? 'Copied to clipboard'
|
|
71
|
-
: 'Copy to clipboard'
|
|
72
|
-
}
|
|
73
|
-
accessibilityHint="Double tap to copy, long press to share"
|
|
74
|
-
onPress={handlePress}
|
|
75
|
-
onLongPress={handleLongPress}
|
|
76
|
-
hitSlop={12}
|
|
77
|
-
style={containerStyle}>
|
|
78
|
-
{copied ? (
|
|
79
|
-
<CheckIcon color={AppColors.greenColor} size={14} />
|
|
80
|
-
) : (
|
|
81
|
-
<IconComponent color={AppColors.grayTextWeak} size={14} />
|
|
82
|
-
)}
|
|
83
|
-
</TouchableScale>
|
|
84
|
-
);
|
|
85
|
-
});
|
|
86
|
-
|
|
87
|
-
export default CopyButton;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {useTranslation} from '../i18n';
|
|
2
|
-
import React, {useMemo} from 'react';
|
|
3
|
-
import {View, Text, ScrollView} from 'react-native';
|
|
4
|
-
|
|
5
|
-
// Helpers
|
|
6
|
-
import {getDiff} from '../helpers';
|
|
7
|
-
|
|
8
|
-
// Stylesheet
|
|
9
|
-
import {AppColors} from '../styles/AppColors';
|
|
10
|
-
import styles from '../styles';
|
|
11
|
-
|
|
12
|
-
const DiffViewer = React.memo(
|
|
13
|
-
({
|
|
14
|
-
oldData,
|
|
15
|
-
newData,
|
|
16
|
-
forceOpen,
|
|
17
|
-
}: {
|
|
18
|
-
oldData: any;
|
|
19
|
-
newData: any;
|
|
20
|
-
forceOpen?: boolean;
|
|
21
|
-
}) => {
|
|
22
|
-
const {t} = useTranslation();
|
|
23
|
-
const diffs = useMemo(() => getDiff(oldData, newData), [oldData, newData]);
|
|
24
|
-
|
|
25
|
-
if (forceOpen === false) {
|
|
26
|
-
return (
|
|
27
|
-
<View style={styles.codeBlock}>
|
|
28
|
-
<Text style={[styles.codeText, {color: AppColors.grayTextWeak}]}>
|
|
29
|
-
{t('network.diffHidden')}
|
|
30
|
-
</Text>
|
|
31
|
-
</View>
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
if (diffs.length === 0) {
|
|
36
|
-
return (
|
|
37
|
-
<View style={styles.codeBlock}>
|
|
38
|
-
<Text style={styles.codeText}>{t('network.noDiff')}</Text>
|
|
39
|
-
</View>
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return (
|
|
44
|
-
<ScrollView
|
|
45
|
-
horizontal
|
|
46
|
-
showsHorizontalScrollIndicator={true}
|
|
47
|
-
style={styles.codeBlockScroll}>
|
|
48
|
-
<View style={styles.diffBlock}>
|
|
49
|
-
{diffs.map((d, i) => {
|
|
50
|
-
const key = d.path === 'root' ? '' : `"${d.path}": `;
|
|
51
|
-
if (d.type === 'added') {
|
|
52
|
-
return (
|
|
53
|
-
<Text key={i} selectable={true} style={styles.diffAdded}>
|
|
54
|
-
+ <Text style={styles.codeKey}>{key}</Text>
|
|
55
|
-
{JSON.stringify(d.newVal)}
|
|
56
|
-
</Text>
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
if (d.type === 'removed') {
|
|
60
|
-
return (
|
|
61
|
-
<Text key={i} selectable={true} style={styles.diffRemoved}>
|
|
62
|
-
- <Text style={styles.codeKey}>{key}</Text>
|
|
63
|
-
{JSON.stringify(d.oldVal)}
|
|
64
|
-
</Text>
|
|
65
|
-
);
|
|
66
|
-
}
|
|
67
|
-
return (
|
|
68
|
-
<Text key={i} selectable={true} style={styles.diffChanged}>
|
|
69
|
-
~ <Text style={styles.codeKey}>{key}</Text>
|
|
70
|
-
{JSON.stringify(d.oldVal)}{' '}
|
|
71
|
-
<Text style={{color: AppColors.grayTextWeak}}>→</Text>{' '}
|
|
72
|
-
{JSON.stringify(d.newVal)}
|
|
73
|
-
</Text>
|
|
74
|
-
);
|
|
75
|
-
})}
|
|
76
|
-
</View>
|
|
77
|
-
</ScrollView>
|
|
78
|
-
);
|
|
79
|
-
},
|
|
80
|
-
);
|
|
81
|
-
|
|
82
|
-
export default DiffViewer;
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {Pressable, View, Text} from 'react-native';
|
|
3
|
-
|
|
4
|
-
// Stylesheet
|
|
5
|
-
import {AppColors} from '../styles/AppColors';
|
|
6
|
-
import {AppFonts} from '../styles/AppFonts';
|
|
7
|
-
|
|
8
|
-
// Helpers
|
|
9
|
-
import {formatDateTime} from '../helpers';
|
|
10
|
-
|
|
11
|
-
// Assets
|
|
12
|
-
import {
|
|
13
|
-
ChevronIcon,
|
|
14
|
-
ScreenIcon,
|
|
15
|
-
CheckIcon,
|
|
16
|
-
FailIcon,
|
|
17
|
-
ClockIcon,
|
|
18
|
-
} from './NetworkIcons';
|
|
19
|
-
|
|
20
|
-
// Stylesheet
|
|
21
|
-
import styles from '../styles';
|
|
22
|
-
|
|
23
|
-
// Type Definition
|
|
24
|
-
import {LocalFilter} from '../types';
|
|
25
|
-
|
|
26
|
-
const DomainHeader = ({
|
|
27
|
-
pageName,
|
|
28
|
-
color,
|
|
29
|
-
stats,
|
|
30
|
-
activeFilters,
|
|
31
|
-
onToggleFilter,
|
|
32
|
-
isCollapsed,
|
|
33
|
-
onToggleCollapse,
|
|
34
|
-
isFirst,
|
|
35
|
-
timestamp,
|
|
36
|
-
}: {
|
|
37
|
-
pageName: string;
|
|
38
|
-
color: string;
|
|
39
|
-
stats: {success: number; failed: number; loading: number};
|
|
40
|
-
activeFilters: Set<LocalFilter>;
|
|
41
|
-
onToggleFilter: (pageName: string, filter: LocalFilter) => void;
|
|
42
|
-
isCollapsed: boolean;
|
|
43
|
-
onToggleCollapse: (pageName: string) => void;
|
|
44
|
-
isFirst: boolean;
|
|
45
|
-
timestamp: number;
|
|
46
|
-
}) => {
|
|
47
|
-
|
|
48
|
-
const visibleStats = ['success', 'failed', 'loading'];
|
|
49
|
-
|
|
50
|
-
const total = stats.success + stats.failed + stats.loading;
|
|
51
|
-
const pctSuccess =
|
|
52
|
-
total > 0 ? Math.round((stats.success / total) * 100) : 0;
|
|
53
|
-
const pctFailed =
|
|
54
|
-
total > 0 ? Math.round((stats.failed / total) * 100) : 0;
|
|
55
|
-
const pctLoading =
|
|
56
|
-
total > 0 ? Math.round((stats.loading / total) * 100) : 0;
|
|
57
|
-
|
|
58
|
-
return (
|
|
59
|
-
<Pressable
|
|
60
|
-
style={[
|
|
61
|
-
styles.domainHeaderCard,
|
|
62
|
-
!isCollapsed && styles.domainHeaderCardExpanded,
|
|
63
|
-
]}
|
|
64
|
-
onPress={() => onToggleCollapse(pageName)}>
|
|
65
|
-
<View style={styles.domainHeaderTopRow}>
|
|
66
|
-
<View style={styles.domainHeaderLeft}>
|
|
67
|
-
<View style={{transform: [{rotate: isCollapsed ? '-90deg' : '0deg'}], flexShrink: 0}}>
|
|
68
|
-
<ChevronIcon color={AppColors.grayTextWeak} size={13} />
|
|
69
|
-
</View>
|
|
70
|
-
<View style={[styles.domainIconWrap, {backgroundColor: `${color}18`, flexShrink: 0}]}>
|
|
71
|
-
<ScreenIcon color={color} size={14} />
|
|
72
|
-
</View>
|
|
73
|
-
<View style={{flex: 1, justifyContent: 'center', minWidth: 0}}>
|
|
74
|
-
<View style={{flexDirection: 'row', alignItems: 'center', gap: 6, minWidth: 0}}>
|
|
75
|
-
<Text
|
|
76
|
-
style={[styles.domainTitleText, {flexShrink: 1}]}
|
|
77
|
-
numberOfLines={1}
|
|
78
|
-
ellipsizeMode="tail">
|
|
79
|
-
{pageName}
|
|
80
|
-
</Text>
|
|
81
|
-
{total > 0 && (
|
|
82
|
-
<View
|
|
83
|
-
style={{
|
|
84
|
-
flexDirection: 'row',
|
|
85
|
-
alignItems: 'center',
|
|
86
|
-
gap: 4,
|
|
87
|
-
backgroundColor:
|
|
88
|
-
stats.failed > 0
|
|
89
|
-
? AppColors.red100
|
|
90
|
-
: stats.loading > 0
|
|
91
|
-
? AppColors.amber100
|
|
92
|
-
: AppColors.emerald100,
|
|
93
|
-
paddingHorizontal: 5,
|
|
94
|
-
paddingVertical: 1.5,
|
|
95
|
-
borderRadius: 4,
|
|
96
|
-
flexShrink: 0,
|
|
97
|
-
}}>
|
|
98
|
-
<View
|
|
99
|
-
style={{
|
|
100
|
-
width: 22,
|
|
101
|
-
height: 3.5,
|
|
102
|
-
borderRadius: 2,
|
|
103
|
-
backgroundColor: AppColors.gray200,
|
|
104
|
-
flexDirection: 'row',
|
|
105
|
-
overflow: 'hidden',
|
|
106
|
-
}}>
|
|
107
|
-
{pctSuccess > 0 && (
|
|
108
|
-
<View
|
|
109
|
-
style={{
|
|
110
|
-
width: `${pctSuccess}%`,
|
|
111
|
-
height: '100%',
|
|
112
|
-
backgroundColor: AppColors.emerald500,
|
|
113
|
-
}}
|
|
114
|
-
/>
|
|
115
|
-
)}
|
|
116
|
-
{pctFailed > 0 && (
|
|
117
|
-
<View
|
|
118
|
-
style={{
|
|
119
|
-
width: `${pctFailed}%`,
|
|
120
|
-
height: '100%',
|
|
121
|
-
backgroundColor: AppColors.red500,
|
|
122
|
-
}}
|
|
123
|
-
/>
|
|
124
|
-
)}
|
|
125
|
-
{pctLoading > 0 && (
|
|
126
|
-
<View
|
|
127
|
-
style={{
|
|
128
|
-
width: `${pctLoading}%`,
|
|
129
|
-
height: '100%',
|
|
130
|
-
backgroundColor: AppColors.amber500,
|
|
131
|
-
}}
|
|
132
|
-
/>
|
|
133
|
-
)}
|
|
134
|
-
</View>
|
|
135
|
-
<Text
|
|
136
|
-
style={{
|
|
137
|
-
fontFamily: AppFonts.interBold,
|
|
138
|
-
fontSize: 8.5,
|
|
139
|
-
color:
|
|
140
|
-
stats.failed > 0
|
|
141
|
-
? AppColors.redErrorText
|
|
142
|
-
: stats.loading > 0
|
|
143
|
-
? AppColors.amber800Warm
|
|
144
|
-
: AppColors.emerald700,
|
|
145
|
-
}}>
|
|
146
|
-
{pctSuccess}%
|
|
147
|
-
</Text>
|
|
148
|
-
</View>
|
|
149
|
-
)}
|
|
150
|
-
</View>
|
|
151
|
-
<Text style={styles.domainSummaryText} numberOfLines={1} ellipsizeMode="tail">
|
|
152
|
-
{formatDateTime(timestamp)}
|
|
153
|
-
</Text>
|
|
154
|
-
</View>
|
|
155
|
-
</View>
|
|
156
|
-
|
|
157
|
-
<View style={styles.domainStatsGroup}>
|
|
158
|
-
{visibleStats.map(type => {
|
|
159
|
-
const isActive = activeFilters.has(type as LocalFilter);
|
|
160
|
-
|
|
161
|
-
let IconComponent;
|
|
162
|
-
let activeColor = '';
|
|
163
|
-
let count = 0;
|
|
164
|
-
|
|
165
|
-
if (type === 'success') {
|
|
166
|
-
IconComponent = CheckIcon;
|
|
167
|
-
activeColor = AppColors.greenColor;
|
|
168
|
-
count = stats.success;
|
|
169
|
-
} else if (type === 'failed') {
|
|
170
|
-
IconComponent = FailIcon;
|
|
171
|
-
activeColor = AppColors.errorColor;
|
|
172
|
-
count = stats.failed;
|
|
173
|
-
} else {
|
|
174
|
-
IconComponent = ClockIcon;
|
|
175
|
-
activeColor = AppColors.darkOrange;
|
|
176
|
-
count = stats.loading;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
return (
|
|
180
|
-
<Pressable
|
|
181
|
-
key={type}
|
|
182
|
-
onPress={() => onToggleFilter(pageName, type as LocalFilter)}
|
|
183
|
-
hitSlop={6}
|
|
184
|
-
style={[
|
|
185
|
-
styles.domainStatPill,
|
|
186
|
-
isActive && {
|
|
187
|
-
borderColor: `${activeColor}40`,
|
|
188
|
-
backgroundColor: `${activeColor}12`,
|
|
189
|
-
},
|
|
190
|
-
]}>
|
|
191
|
-
<View
|
|
192
|
-
style={[
|
|
193
|
-
styles.filterCheckbox,
|
|
194
|
-
{marginRight: 0, width: 11, height: 11, borderRadius: 2.5},
|
|
195
|
-
isActive && [
|
|
196
|
-
styles.filterCheckboxActive,
|
|
197
|
-
{backgroundColor: activeColor},
|
|
198
|
-
],
|
|
199
|
-
]}>
|
|
200
|
-
{isActive && (
|
|
201
|
-
<CheckIcon color={AppColors.white} size={7} />
|
|
202
|
-
)}
|
|
203
|
-
</View>
|
|
204
|
-
<IconComponent
|
|
205
|
-
color={isActive ? activeColor : AppColors.grayTextWeak}
|
|
206
|
-
size={type === 'failed' ? 8 : 10}
|
|
207
|
-
/>
|
|
208
|
-
<Text
|
|
209
|
-
style={[
|
|
210
|
-
styles.domainStatText,
|
|
211
|
-
{color: isActive ? activeColor : AppColors.grayTextWeak},
|
|
212
|
-
]}>
|
|
213
|
-
{count}
|
|
214
|
-
</Text>
|
|
215
|
-
</Pressable>
|
|
216
|
-
);
|
|
217
|
-
})}
|
|
218
|
-
</View>
|
|
219
|
-
</View>
|
|
220
|
-
</Pressable>
|
|
221
|
-
);
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
export default DomainHeader;
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import React, {useEffect, useRef} from 'react';
|
|
2
|
-
import {Animated, DevSettings, Alert, View, Text} from 'react-native';
|
|
3
|
-
|
|
4
|
-
// Components
|
|
5
|
-
import TouchableScale from './TouchableScale';
|
|
6
|
-
import AnimatedEntrance from './AnimatedEntrance';
|
|
7
|
-
|
|
8
|
-
// Assets
|
|
9
|
-
import {EmptyRadarIcon} from './NetworkIcons';
|
|
10
|
-
|
|
11
|
-
// Stylesheet
|
|
12
|
-
import {AppColors} from '../styles/AppColors';
|
|
13
|
-
import styles from '../styles';
|
|
14
|
-
|
|
15
|
-
interface EmptyStateProps {
|
|
16
|
-
isSearch?: boolean;
|
|
17
|
-
searchQuery?: string;
|
|
18
|
-
customTitle?: string;
|
|
19
|
-
customSub?: string;
|
|
20
|
-
onClearSearch?: () => void;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
const EmptyState = React.memo(function EmptyState({
|
|
24
|
-
isSearch,
|
|
25
|
-
searchQuery,
|
|
26
|
-
customTitle,
|
|
27
|
-
customSub,
|
|
28
|
-
onClearSearch,
|
|
29
|
-
}: EmptyStateProps) {
|
|
30
|
-
const iconPulse = useRef(new Animated.Value(1)).current;
|
|
31
|
-
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
const loop = Animated.loop(
|
|
34
|
-
Animated.sequence([
|
|
35
|
-
Animated.timing(iconPulse, {
|
|
36
|
-
toValue: 1.06,
|
|
37
|
-
duration: 900,
|
|
38
|
-
useNativeDriver: false,
|
|
39
|
-
}),
|
|
40
|
-
Animated.timing(iconPulse, {
|
|
41
|
-
toValue: 1,
|
|
42
|
-
duration: 900,
|
|
43
|
-
useNativeDriver: false,
|
|
44
|
-
}),
|
|
45
|
-
]),
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
loop.start();
|
|
49
|
-
return () => loop.stop();
|
|
50
|
-
}, [iconPulse]);
|
|
51
|
-
|
|
52
|
-
const handleReload = () => {
|
|
53
|
-
if (__DEV__ && DevSettings && DevSettings.reload) {
|
|
54
|
-
DevSettings.reload();
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
Alert.alert(
|
|
59
|
-
'Reload',
|
|
60
|
-
'App reload is typically only available in development mode.',
|
|
61
|
-
);
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
return (
|
|
65
|
-
<AnimatedEntrance style={styles.emptyContainer} distance={14}>
|
|
66
|
-
<Animated.View
|
|
67
|
-
style={[styles.emptyIconWrap, {transform: [{scale: iconPulse}]}]}>
|
|
68
|
-
<EmptyRadarIcon color={AppColors.purple} size={32} />
|
|
69
|
-
</Animated.View>
|
|
70
|
-
<Text style={styles.emptyTitle}>
|
|
71
|
-
{customTitle || (isSearch ? 'No matching results' : 'No network activity')}
|
|
72
|
-
</Text>
|
|
73
|
-
<Text style={styles.emptySub}>
|
|
74
|
-
{customSub ||
|
|
75
|
-
(isSearch
|
|
76
|
-
? searchQuery
|
|
77
|
-
? `No items matched "${searchQuery}"`
|
|
78
|
-
: 'Try adjusting your filters or search keywords.'
|
|
79
|
-
: 'Listening for incoming API calls...')}
|
|
80
|
-
</Text>
|
|
81
|
-
{isSearch && onClearSearch && (
|
|
82
|
-
<TouchableScale style={styles.reloadBtn} onPress={onClearSearch}>
|
|
83
|
-
<Text style={styles.reloadBtnText}>Clear Search & Filters</Text>
|
|
84
|
-
</TouchableScale>
|
|
85
|
-
)}
|
|
86
|
-
{!isSearch && (
|
|
87
|
-
<TouchableScale style={styles.reloadBtn} onPress={handleReload}>
|
|
88
|
-
<Text style={styles.reloadBtnText}>Reload App</Text>
|
|
89
|
-
</TouchableScale>
|
|
90
|
-
)}
|
|
91
|
-
</AnimatedEntrance>
|
|
92
|
-
);
|
|
93
|
-
});
|
|
94
|
-
|
|
95
|
-
export default EmptyState;
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {Platform, StyleSheet, Text, View} from 'react-native';
|
|
3
|
-
import {AppColors} from '../styles/AppColors';
|
|
4
|
-
import {AppFonts} from '../styles/AppFonts';
|
|
5
|
-
import {CheckIcon} from './NetworkIcons';
|
|
6
|
-
|
|
7
|
-
interface EndOfListFooterProps {
|
|
8
|
-
count?: number;
|
|
9
|
-
label?: string;
|
|
10
|
-
message?: string;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export const EndOfListFooter: React.FC<EndOfListFooterProps> = React.memo(({
|
|
14
|
-
count,
|
|
15
|
-
label,
|
|
16
|
-
message = "You've reached the end of the list",
|
|
17
|
-
}) => {
|
|
18
|
-
return (
|
|
19
|
-
<View style={styles.container}>
|
|
20
|
-
<View style={styles.dividerLine} />
|
|
21
|
-
<View style={styles.badgePill}>
|
|
22
|
-
<View style={styles.iconCircle}>
|
|
23
|
-
<CheckIcon color={AppColors.purple} size={8} />
|
|
24
|
-
</View>
|
|
25
|
-
<Text style={styles.messageText}>{message}</Text>
|
|
26
|
-
{count != null && count > 0 && (
|
|
27
|
-
<View style={styles.countBadge}>
|
|
28
|
-
<Text style={styles.countText}>
|
|
29
|
-
{count} {label ? (count === 1 ? label.replace(/s$/, '') : label) : ''}
|
|
30
|
-
</Text>
|
|
31
|
-
</View>
|
|
32
|
-
)}
|
|
33
|
-
</View>
|
|
34
|
-
<View style={styles.dividerLine} />
|
|
35
|
-
</View>
|
|
36
|
-
);
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
const styles = StyleSheet.create({
|
|
40
|
-
container: {
|
|
41
|
-
flexDirection: 'row',
|
|
42
|
-
alignItems: 'center',
|
|
43
|
-
justifyContent: 'center',
|
|
44
|
-
paddingHorizontal: 16,
|
|
45
|
-
paddingTop: 16,
|
|
46
|
-
paddingBottom: Platform.OS === 'ios' ? 44 : 32,
|
|
47
|
-
gap: 8,
|
|
48
|
-
},
|
|
49
|
-
dividerLine: {
|
|
50
|
-
flex: 1,
|
|
51
|
-
height: 1,
|
|
52
|
-
backgroundColor: AppColors.dividerColor,
|
|
53
|
-
opacity: 0.7,
|
|
54
|
-
},
|
|
55
|
-
badgePill: {
|
|
56
|
-
flexDirection: 'row',
|
|
57
|
-
alignItems: 'center',
|
|
58
|
-
gap: 6,
|
|
59
|
-
paddingHorizontal: 10,
|
|
60
|
-
paddingVertical: 5,
|
|
61
|
-
borderRadius: 999,
|
|
62
|
-
backgroundColor: AppColors.primaryLight,
|
|
63
|
-
borderWidth: 1,
|
|
64
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
65
|
-
shadowColor: AppColors.black,
|
|
66
|
-
shadowOffset: {width: 0, height: 1},
|
|
67
|
-
shadowOpacity: 0.04,
|
|
68
|
-
shadowRadius: 2,
|
|
69
|
-
elevation: 1,
|
|
70
|
-
},
|
|
71
|
-
iconCircle: {
|
|
72
|
-
width: 14,
|
|
73
|
-
height: 14,
|
|
74
|
-
borderRadius: 7,
|
|
75
|
-
backgroundColor: `${AppColors.purple}18`,
|
|
76
|
-
alignItems: 'center',
|
|
77
|
-
justifyContent: 'center',
|
|
78
|
-
},
|
|
79
|
-
messageText: {
|
|
80
|
-
fontFamily: AppFonts.interMedium,
|
|
81
|
-
fontSize: 11,
|
|
82
|
-
color: AppColors.grayTextWeak,
|
|
83
|
-
letterSpacing: 0.1,
|
|
84
|
-
},
|
|
85
|
-
countBadge: {
|
|
86
|
-
paddingHorizontal: 5,
|
|
87
|
-
paddingVertical: 1,
|
|
88
|
-
borderRadius: 6,
|
|
89
|
-
backgroundColor: AppColors.grayBackground,
|
|
90
|
-
borderWidth: 1,
|
|
91
|
-
borderColor: AppColors.grayBorderSecondary,
|
|
92
|
-
},
|
|
93
|
-
countText: {
|
|
94
|
-
fontFamily: AppFonts.interBold,
|
|
95
|
-
fontSize: 9.5,
|
|
96
|
-
color: AppColors.grayTextStrong,
|
|
97
|
-
},
|
|
98
|
-
});
|
|
99
|
-
|
|
100
|
-
export default EndOfListFooter;
|