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,626 +0,0 @@
|
|
|
1
|
-
import React, {useState, useEffect} from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Alert,
|
|
4
|
-
Dimensions,
|
|
5
|
-
PixelRatio,
|
|
6
|
-
Platform,
|
|
7
|
-
Linking,
|
|
8
|
-
ScrollView,
|
|
9
|
-
StyleSheet,
|
|
10
|
-
Text,
|
|
11
|
-
TextInput,
|
|
12
|
-
TouchableOpacity,
|
|
13
|
-
View,
|
|
14
|
-
} from 'react-native';
|
|
15
|
-
import {AppColors} from '../../styles/AppColors';
|
|
16
|
-
import {AppFonts} from '../../styles/AppFonts';
|
|
17
|
-
import TouchableScale from '../TouchableScale';
|
|
18
|
-
import {LIB_VERSION} from '../../constants/version';
|
|
19
|
-
import {
|
|
20
|
-
getAppName,
|
|
21
|
-
getBundleIdentifier,
|
|
22
|
-
getAppVersionAndBuild,
|
|
23
|
-
copyToClipboard,
|
|
24
|
-
showToast,
|
|
25
|
-
} from '../../helpers';
|
|
26
|
-
import {trackTelemetryEvent} from '../../helpers/telemetry';
|
|
27
|
-
import {
|
|
28
|
-
HeadphonesIcon,
|
|
29
|
-
SendIcon,
|
|
30
|
-
StarIcon,
|
|
31
|
-
CopyIcon,
|
|
32
|
-
InfoCircleIcon,
|
|
33
|
-
CheckIcon,
|
|
34
|
-
} from '../NetworkIcons';
|
|
35
|
-
|
|
36
|
-
const DEVELOPER_EMAIL = 'vengatmacuser@gmail.com';
|
|
37
|
-
|
|
38
|
-
export interface FeedbackModalProps {
|
|
39
|
-
visible?: boolean;
|
|
40
|
-
onClose: () => void;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type FeedbackCategory = 'feedback' | 'bug' | 'feature' | 'performance' | 'help';
|
|
44
|
-
|
|
45
|
-
const CATEGORIES: {key: FeedbackCategory; label: string; icon: string}[] = [
|
|
46
|
-
{key: 'feedback', label: 'Feedback', icon: '💬'},
|
|
47
|
-
{key: 'bug', label: 'Bug Report', icon: '🐛'},
|
|
48
|
-
{key: 'feature', label: 'Feature Request', icon: '✨'},
|
|
49
|
-
{key: 'performance', label: 'Performance', icon: '⚡'},
|
|
50
|
-
{key: 'help', label: 'Support / Help', icon: '❓'},
|
|
51
|
-
];
|
|
52
|
-
|
|
53
|
-
const RATING_LABELS = ['', 'Poor', 'Fair', 'Good', 'Very Good', 'Excellent!'];
|
|
54
|
-
|
|
55
|
-
export const FeedbackModal: React.FC<FeedbackModalProps> = ({onClose}) => {
|
|
56
|
-
const [category, setCategory] = useState<FeedbackCategory>('feedback');
|
|
57
|
-
const [rating, setRating] = useState<number>(5);
|
|
58
|
-
const [subject, setSubject] = useState<string>('');
|
|
59
|
-
const [message, setMessage] = useState<string>('');
|
|
60
|
-
const [showDiagnostics, setShowDiagnostics] = useState<boolean>(false);
|
|
61
|
-
const [isSending, setIsSending] = useState<boolean>(false);
|
|
62
|
-
const [copiedDraft, setCopiedDraft] = useState<boolean>(false);
|
|
63
|
-
|
|
64
|
-
useEffect(() => {
|
|
65
|
-
trackTelemetryEvent('feedback_modal_opened', {category});
|
|
66
|
-
}, []);
|
|
67
|
-
|
|
68
|
-
const appName = getAppName() || 'React Native App';
|
|
69
|
-
const bundleId = getBundleIdentifier() || 'unknown';
|
|
70
|
-
const appVersion = getAppVersionAndBuild() || '1.0.0';
|
|
71
|
-
const {width, height} = Dimensions.get('window');
|
|
72
|
-
|
|
73
|
-
const getDiagnosticsText = () => {
|
|
74
|
-
return [
|
|
75
|
-
`• Package: react-native-inapp-inspector@${LIB_VERSION}`,
|
|
76
|
-
`• Platform: ${Platform.OS.toUpperCase()} (${Platform.Version})`,
|
|
77
|
-
`• App: ${appName} (${bundleId}) v${appVersion}`,
|
|
78
|
-
`• Screen: ${Math.round(width)} x ${Math.round(height)} (Scale ${PixelRatio.get()})`,
|
|
79
|
-
`• Timestamp: ${new Date().toISOString()}`,
|
|
80
|
-
].join('\n');
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
const buildEmailDraft = () => {
|
|
84
|
-
const activeCat = CATEGORIES.find(c => c.key === category)?.label || category;
|
|
85
|
-
const emailSubject = `[In-App Inspector] [${activeCat}] ${subject.trim() || 'User Feedback'}`;
|
|
86
|
-
const bodyLines = [
|
|
87
|
-
`Category: ${activeCat}`,
|
|
88
|
-
`Rating: ${rating} / 5 (${RATING_LABELS[rating] || ''})`,
|
|
89
|
-
...(subject.trim() ? [`Subject: ${subject.trim()}`] : []),
|
|
90
|
-
'',
|
|
91
|
-
'Feedback / Message:',
|
|
92
|
-
message.trim() || '(No message provided)',
|
|
93
|
-
'',
|
|
94
|
-
'----------------------------------------',
|
|
95
|
-
'System & Diagnostic Info:',
|
|
96
|
-
getDiagnosticsText(),
|
|
97
|
-
'----------------------------------------',
|
|
98
|
-
];
|
|
99
|
-
return {
|
|
100
|
-
activeCat,
|
|
101
|
-
subject: emailSubject,
|
|
102
|
-
body: bodyLines.join('\n'),
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
|
|
106
|
-
const handleCopyDraft = () => {
|
|
107
|
-
const draft = buildEmailDraft();
|
|
108
|
-
const fullText = `To: ${DEVELOPER_EMAIL}\nSubject: ${draft.subject}\n\n${draft.body}`;
|
|
109
|
-
copyToClipboard(fullText, 'Email Draft & Diagnostics');
|
|
110
|
-
setCopiedDraft(true);
|
|
111
|
-
setTimeout(() => setCopiedDraft(false), 2000);
|
|
112
|
-
showToast('Feedback draft copied to clipboard');
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
const handleSendEmail = async () => {
|
|
116
|
-
if (isSending) return;
|
|
117
|
-
setIsSending(true);
|
|
118
|
-
|
|
119
|
-
try {
|
|
120
|
-
const draft = buildEmailDraft();
|
|
121
|
-
const mailtoUrl = `mailto:${DEVELOPER_EMAIL}?subject=${encodeURIComponent(
|
|
122
|
-
draft.subject,
|
|
123
|
-
)}&body=${encodeURIComponent(draft.body)}`;
|
|
124
|
-
|
|
125
|
-
// Track telemetry event
|
|
126
|
-
trackTelemetryEvent('feedback_submitted', {
|
|
127
|
-
category,
|
|
128
|
-
rating,
|
|
129
|
-
has_subject: Boolean(subject.trim()),
|
|
130
|
-
has_message: Boolean(message.trim()),
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
let opened = false;
|
|
134
|
-
try {
|
|
135
|
-
const canOpen = await Linking.canOpenURL(mailtoUrl);
|
|
136
|
-
if (canOpen) {
|
|
137
|
-
await Linking.openURL(mailtoUrl);
|
|
138
|
-
opened = true;
|
|
139
|
-
} else {
|
|
140
|
-
await Linking.openURL(mailtoUrl);
|
|
141
|
-
opened = true;
|
|
142
|
-
}
|
|
143
|
-
} catch (err) {
|
|
144
|
-
opened = false;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
if (opened) {
|
|
148
|
-
showToast('Opening mail client...');
|
|
149
|
-
onClose();
|
|
150
|
-
} else {
|
|
151
|
-
// Fallback: Copy to clipboard and alert user with action options
|
|
152
|
-
const fullDraft = `To: ${DEVELOPER_EMAIL}\nSubject: ${draft.subject}\n\n${draft.body}`;
|
|
153
|
-
copyToClipboard(fullDraft, 'Feedback Draft');
|
|
154
|
-
Alert.alert(
|
|
155
|
-
'Email Client Not Available',
|
|
156
|
-
`Your feedback and diagnostics have been copied to the clipboard!\n\nYou can paste and send directly to:\n${DEVELOPER_EMAIL}`,
|
|
157
|
-
[
|
|
158
|
-
{
|
|
159
|
-
text: 'Copy Email Address',
|
|
160
|
-
onPress: () => {
|
|
161
|
-
copyToClipboard(DEVELOPER_EMAIL, 'Email Address');
|
|
162
|
-
showToast('Email address copied!');
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
text: 'Done',
|
|
167
|
-
style: 'default',
|
|
168
|
-
onPress: onClose,
|
|
169
|
-
},
|
|
170
|
-
],
|
|
171
|
-
);
|
|
172
|
-
}
|
|
173
|
-
} catch (err) {
|
|
174
|
-
console.warn('[FeedbackModal] Error sending email:', err);
|
|
175
|
-
} finally {
|
|
176
|
-
setIsSending(false);
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
|
|
180
|
-
return (
|
|
181
|
-
<View style={styles.container}>
|
|
182
|
-
{/* Top Banner inside sheet */}
|
|
183
|
-
<View style={styles.bannerBar}>
|
|
184
|
-
<View style={styles.bannerIconBox}>
|
|
185
|
-
<HeadphonesIcon size={18} color={AppColors.purple} />
|
|
186
|
-
</View>
|
|
187
|
-
<View style={{flex: 1}}>
|
|
188
|
-
<Text style={styles.bannerTitle}>Share your feedback or report an issue</Text>
|
|
189
|
-
<Text style={styles.bannerSub}>
|
|
190
|
-
Direct communication with the maintainers. Diagnostic info is auto-attached.
|
|
191
|
-
</Text>
|
|
192
|
-
</View>
|
|
193
|
-
</View>
|
|
194
|
-
|
|
195
|
-
<ScrollView
|
|
196
|
-
style={styles.scrollContent}
|
|
197
|
-
contentContainerStyle={styles.scrollInner}
|
|
198
|
-
showsVerticalScrollIndicator={false}
|
|
199
|
-
keyboardShouldPersistTaps="handled">
|
|
200
|
-
{/* Category selection */}
|
|
201
|
-
<Text style={styles.sectionLabel}>WHAT CAN WE HELP WITH?</Text>
|
|
202
|
-
<View style={styles.categoryGrid}>
|
|
203
|
-
{CATEGORIES.map(cat => {
|
|
204
|
-
const isSelected = category === cat.key;
|
|
205
|
-
return (
|
|
206
|
-
<TouchableOpacity
|
|
207
|
-
key={cat.key}
|
|
208
|
-
activeOpacity={0.7}
|
|
209
|
-
onPress={() => setCategory(cat.key)}
|
|
210
|
-
style={[
|
|
211
|
-
styles.categoryChip,
|
|
212
|
-
isSelected && styles.categoryChipSelected,
|
|
213
|
-
]}>
|
|
214
|
-
<Text style={styles.categoryIcon}>{cat.icon}</Text>
|
|
215
|
-
<Text
|
|
216
|
-
style={[
|
|
217
|
-
styles.categoryText,
|
|
218
|
-
isSelected && styles.categoryTextSelected,
|
|
219
|
-
]}>
|
|
220
|
-
{cat.label}
|
|
221
|
-
</Text>
|
|
222
|
-
</TouchableOpacity>
|
|
223
|
-
);
|
|
224
|
-
})}
|
|
225
|
-
</View>
|
|
226
|
-
|
|
227
|
-
{/* Rating Stars */}
|
|
228
|
-
<View style={styles.ratingCard}>
|
|
229
|
-
<View style={styles.ratingHeader}>
|
|
230
|
-
<Text style={styles.ratingTitle}>Rate your experience</Text>
|
|
231
|
-
{rating > 0 && (
|
|
232
|
-
<Text style={styles.ratingBadge}>
|
|
233
|
-
{RATING_LABELS[rating]}
|
|
234
|
-
</Text>
|
|
235
|
-
)}
|
|
236
|
-
</View>
|
|
237
|
-
<View style={styles.starsRow}>
|
|
238
|
-
{[1, 2, 3, 4, 5].map(star => {
|
|
239
|
-
const filled = star <= rating;
|
|
240
|
-
return (
|
|
241
|
-
<TouchableOpacity
|
|
242
|
-
key={star}
|
|
243
|
-
activeOpacity={0.7}
|
|
244
|
-
onPress={() => setRating(star)}
|
|
245
|
-
style={styles.starTouch}>
|
|
246
|
-
<StarIcon
|
|
247
|
-
size={26}
|
|
248
|
-
color={filled ? '#FFB800' : AppColors.grayTextWeak}
|
|
249
|
-
/>
|
|
250
|
-
</TouchableOpacity>
|
|
251
|
-
);
|
|
252
|
-
})}
|
|
253
|
-
</View>
|
|
254
|
-
</View>
|
|
255
|
-
|
|
256
|
-
{/* Subject Input */}
|
|
257
|
-
<Text style={styles.sectionLabel}>SUBJECT (OPTIONAL)</Text>
|
|
258
|
-
<View style={styles.inputWrapper}>
|
|
259
|
-
<TextInput
|
|
260
|
-
style={styles.textInput}
|
|
261
|
-
placeholder="Brief summary..."
|
|
262
|
-
placeholderTextColor={AppColors.grayTextWeak}
|
|
263
|
-
value={subject}
|
|
264
|
-
onChangeText={setSubject}
|
|
265
|
-
maxLength={80}
|
|
266
|
-
/>
|
|
267
|
-
</View>
|
|
268
|
-
|
|
269
|
-
{/* Message Input */}
|
|
270
|
-
<Text style={styles.sectionLabel}>YOUR MESSAGE / DETAILS</Text>
|
|
271
|
-
<View style={[styles.inputWrapper, styles.textareaWrapper]}>
|
|
272
|
-
<TextInput
|
|
273
|
-
style={[styles.textInput, styles.textarea]}
|
|
274
|
-
placeholder="Describe your issue, feature request, or suggestion in detail..."
|
|
275
|
-
placeholderTextColor={AppColors.grayTextWeak}
|
|
276
|
-
value={message}
|
|
277
|
-
onChangeText={setMessage}
|
|
278
|
-
multiline
|
|
279
|
-
numberOfLines={4}
|
|
280
|
-
textAlignVertical="top"
|
|
281
|
-
/>
|
|
282
|
-
</View>
|
|
283
|
-
|
|
284
|
-
{/* Diagnostics Card */}
|
|
285
|
-
<TouchableOpacity
|
|
286
|
-
activeOpacity={0.8}
|
|
287
|
-
onPress={() => setShowDiagnostics(!showDiagnostics)}
|
|
288
|
-
style={styles.diagnosticsToggle}>
|
|
289
|
-
<View style={styles.diagnosticsHeader}>
|
|
290
|
-
<InfoCircleIcon size={14} color={AppColors.purple} />
|
|
291
|
-
<Text style={styles.diagnosticsTitle}>
|
|
292
|
-
Diagnostics & System Details (Auto-attached)
|
|
293
|
-
</Text>
|
|
294
|
-
</View>
|
|
295
|
-
<Text style={styles.diagnosticsArrow}>
|
|
296
|
-
{showDiagnostics ? '▲' : '▼'}
|
|
297
|
-
</Text>
|
|
298
|
-
</TouchableOpacity>
|
|
299
|
-
|
|
300
|
-
{showDiagnostics && (
|
|
301
|
-
<View style={styles.diagnosticsBox}>
|
|
302
|
-
<Text style={styles.diagnosticsText}>
|
|
303
|
-
{getDiagnosticsText()}
|
|
304
|
-
</Text>
|
|
305
|
-
</View>
|
|
306
|
-
)}
|
|
307
|
-
|
|
308
|
-
{/* Recipient Notice */}
|
|
309
|
-
<View style={styles.recipientBadge}>
|
|
310
|
-
<Text style={styles.recipientText}>
|
|
311
|
-
📧 Emails to: <Text style={styles.recipientHighlight}>{DEVELOPER_EMAIL}</Text>
|
|
312
|
-
</Text>
|
|
313
|
-
</View>
|
|
314
|
-
</ScrollView>
|
|
315
|
-
|
|
316
|
-
{/* Footer Actions */}
|
|
317
|
-
<View style={styles.footer}>
|
|
318
|
-
<TouchableOpacity
|
|
319
|
-
activeOpacity={0.7}
|
|
320
|
-
onPress={handleCopyDraft}
|
|
321
|
-
style={styles.copyDraftBtn}>
|
|
322
|
-
{copiedDraft ? (
|
|
323
|
-
<CheckIcon size={14} color={AppColors.emerald500} />
|
|
324
|
-
) : (
|
|
325
|
-
<CopyIcon size={14} color={AppColors.grayText} />
|
|
326
|
-
)}
|
|
327
|
-
<Text
|
|
328
|
-
style={[
|
|
329
|
-
styles.copyDraftBtnText,
|
|
330
|
-
copiedDraft && {color: AppColors.emerald500},
|
|
331
|
-
]}>
|
|
332
|
-
{copiedDraft ? 'Copied!' : 'Copy Draft'}
|
|
333
|
-
</Text>
|
|
334
|
-
</TouchableOpacity>
|
|
335
|
-
|
|
336
|
-
<View style={styles.footerRight}>
|
|
337
|
-
<TouchableOpacity
|
|
338
|
-
activeOpacity={0.7}
|
|
339
|
-
onPress={onClose}
|
|
340
|
-
style={styles.cancelBtn}>
|
|
341
|
-
<Text style={styles.cancelBtnText}>Cancel</Text>
|
|
342
|
-
</TouchableOpacity>
|
|
343
|
-
|
|
344
|
-
<TouchableOpacity
|
|
345
|
-
activeOpacity={0.8}
|
|
346
|
-
onPress={handleSendEmail}
|
|
347
|
-
style={styles.submitBtn}>
|
|
348
|
-
<SendIcon size={16} color={AppColors.white} />
|
|
349
|
-
<Text style={styles.submitBtnText}>
|
|
350
|
-
{isSending ? 'Sending...' : 'Send via Email'}
|
|
351
|
-
</Text>
|
|
352
|
-
</TouchableOpacity>
|
|
353
|
-
</View>
|
|
354
|
-
</View>
|
|
355
|
-
</View>
|
|
356
|
-
);
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
const styles = StyleSheet.create({
|
|
360
|
-
container: {
|
|
361
|
-
flex: 1,
|
|
362
|
-
backgroundColor: AppColors.primaryLight,
|
|
363
|
-
},
|
|
364
|
-
bannerBar: {
|
|
365
|
-
flexDirection: 'row',
|
|
366
|
-
alignItems: 'center',
|
|
367
|
-
gap: 10,
|
|
368
|
-
backgroundColor: `${AppColors.purple}12`,
|
|
369
|
-
paddingHorizontal: 14,
|
|
370
|
-
paddingVertical: 10,
|
|
371
|
-
borderBottomWidth: 1,
|
|
372
|
-
borderBottomColor: `${AppColors.purple}20`,
|
|
373
|
-
},
|
|
374
|
-
bannerIconBox: {
|
|
375
|
-
width: 32,
|
|
376
|
-
height: 32,
|
|
377
|
-
borderRadius: 8,
|
|
378
|
-
backgroundColor: `${AppColors.purple}20`,
|
|
379
|
-
alignItems: 'center',
|
|
380
|
-
justifyContent: 'center',
|
|
381
|
-
},
|
|
382
|
-
bannerTitle: {
|
|
383
|
-
fontFamily: AppFonts.interSemiBold,
|
|
384
|
-
fontSize: 12.5,
|
|
385
|
-
color: AppColors.purple,
|
|
386
|
-
},
|
|
387
|
-
bannerSub: {
|
|
388
|
-
fontFamily: AppFonts.interRegular,
|
|
389
|
-
fontSize: 10.5,
|
|
390
|
-
color: AppColors.grayText,
|
|
391
|
-
marginTop: 1,
|
|
392
|
-
},
|
|
393
|
-
scrollContent: {
|
|
394
|
-
flex: 1,
|
|
395
|
-
},
|
|
396
|
-
scrollInner: {
|
|
397
|
-
paddingHorizontal: 16,
|
|
398
|
-
paddingTop: 12,
|
|
399
|
-
paddingBottom: 20,
|
|
400
|
-
},
|
|
401
|
-
sectionLabel: {
|
|
402
|
-
fontFamily: AppFonts.interSemiBold,
|
|
403
|
-
fontSize: 10.5,
|
|
404
|
-
color: AppColors.grayText,
|
|
405
|
-
letterSpacing: 0.8,
|
|
406
|
-
marginBottom: 8,
|
|
407
|
-
marginTop: 10,
|
|
408
|
-
},
|
|
409
|
-
categoryGrid: {
|
|
410
|
-
flexDirection: 'row',
|
|
411
|
-
flexWrap: 'wrap',
|
|
412
|
-
gap: 8,
|
|
413
|
-
paddingBottom: 4,
|
|
414
|
-
},
|
|
415
|
-
categoryChip: {
|
|
416
|
-
flexDirection: 'row',
|
|
417
|
-
alignItems: 'center',
|
|
418
|
-
gap: 6,
|
|
419
|
-
paddingVertical: 7,
|
|
420
|
-
paddingHorizontal: 12,
|
|
421
|
-
borderRadius: 8,
|
|
422
|
-
backgroundColor: AppColors.grayBackground,
|
|
423
|
-
borderWidth: 1,
|
|
424
|
-
borderColor: AppColors.dividerColor,
|
|
425
|
-
},
|
|
426
|
-
categoryChipSelected: {
|
|
427
|
-
backgroundColor: `${AppColors.purple}15`,
|
|
428
|
-
borderColor: AppColors.purple,
|
|
429
|
-
},
|
|
430
|
-
categoryIcon: {
|
|
431
|
-
fontSize: 13,
|
|
432
|
-
},
|
|
433
|
-
categoryText: {
|
|
434
|
-
fontFamily: AppFonts.interMedium,
|
|
435
|
-
fontSize: 12,
|
|
436
|
-
color: AppColors.grayText,
|
|
437
|
-
},
|
|
438
|
-
categoryTextSelected: {
|
|
439
|
-
color: AppColors.purple,
|
|
440
|
-
fontFamily: AppFonts.interSemiBold,
|
|
441
|
-
},
|
|
442
|
-
ratingCard: {
|
|
443
|
-
backgroundColor: AppColors.grayBackground,
|
|
444
|
-
borderRadius: 12,
|
|
445
|
-
padding: 12,
|
|
446
|
-
marginTop: 12,
|
|
447
|
-
borderWidth: 1,
|
|
448
|
-
borderColor: AppColors.dividerColor,
|
|
449
|
-
},
|
|
450
|
-
ratingHeader: {
|
|
451
|
-
flexDirection: 'row',
|
|
452
|
-
justifyContent: 'space-between',
|
|
453
|
-
alignItems: 'center',
|
|
454
|
-
marginBottom: 8,
|
|
455
|
-
},
|
|
456
|
-
ratingTitle: {
|
|
457
|
-
fontFamily: AppFonts.interSemiBold,
|
|
458
|
-
fontSize: 12.5,
|
|
459
|
-
color: AppColors.primaryBlack,
|
|
460
|
-
},
|
|
461
|
-
ratingBadge: {
|
|
462
|
-
fontFamily: AppFonts.interSemiBold,
|
|
463
|
-
fontSize: 11,
|
|
464
|
-
color: '#D97706',
|
|
465
|
-
backgroundColor: '#FEF3C7',
|
|
466
|
-
paddingHorizontal: 8,
|
|
467
|
-
paddingVertical: 2,
|
|
468
|
-
borderRadius: 6,
|
|
469
|
-
},
|
|
470
|
-
starsRow: {
|
|
471
|
-
flexDirection: 'row',
|
|
472
|
-
alignItems: 'center',
|
|
473
|
-
gap: 12,
|
|
474
|
-
paddingVertical: 4,
|
|
475
|
-
},
|
|
476
|
-
starTouch: {
|
|
477
|
-
padding: 2,
|
|
478
|
-
},
|
|
479
|
-
inputWrapper: {
|
|
480
|
-
backgroundColor: AppColors.grayBackground,
|
|
481
|
-
borderRadius: 10,
|
|
482
|
-
borderWidth: 1,
|
|
483
|
-
borderColor: AppColors.dividerColor,
|
|
484
|
-
paddingHorizontal: 12,
|
|
485
|
-
paddingVertical: 8,
|
|
486
|
-
},
|
|
487
|
-
textareaWrapper: {
|
|
488
|
-
minHeight: 88,
|
|
489
|
-
paddingVertical: 10,
|
|
490
|
-
},
|
|
491
|
-
textInput: {
|
|
492
|
-
fontFamily: AppFonts.interRegular,
|
|
493
|
-
fontSize: 13,
|
|
494
|
-
color: AppColors.primaryBlack,
|
|
495
|
-
padding: 0,
|
|
496
|
-
},
|
|
497
|
-
textarea: {
|
|
498
|
-
height: 72,
|
|
499
|
-
},
|
|
500
|
-
diagnosticsToggle: {
|
|
501
|
-
flexDirection: 'row',
|
|
502
|
-
alignItems: 'center',
|
|
503
|
-
justifyContent: 'space-between',
|
|
504
|
-
backgroundColor: `${AppColors.purple}10`,
|
|
505
|
-
borderRadius: 8,
|
|
506
|
-
paddingHorizontal: 12,
|
|
507
|
-
paddingVertical: 9,
|
|
508
|
-
marginTop: 14,
|
|
509
|
-
borderWidth: 1,
|
|
510
|
-
borderColor: `${AppColors.purple}25`,
|
|
511
|
-
},
|
|
512
|
-
diagnosticsHeader: {
|
|
513
|
-
flexDirection: 'row',
|
|
514
|
-
alignItems: 'center',
|
|
515
|
-
gap: 8,
|
|
516
|
-
flex: 1,
|
|
517
|
-
},
|
|
518
|
-
diagnosticsTitle: {
|
|
519
|
-
fontFamily: AppFonts.interMedium,
|
|
520
|
-
fontSize: 11.5,
|
|
521
|
-
color: AppColors.purple,
|
|
522
|
-
},
|
|
523
|
-
diagnosticsArrow: {
|
|
524
|
-
fontSize: 10,
|
|
525
|
-
color: AppColors.purple,
|
|
526
|
-
},
|
|
527
|
-
diagnosticsBox: {
|
|
528
|
-
backgroundColor: '#1E1B2E',
|
|
529
|
-
borderRadius: 8,
|
|
530
|
-
padding: 10,
|
|
531
|
-
marginTop: 6,
|
|
532
|
-
borderWidth: 1,
|
|
533
|
-
borderColor: AppColors.dividerColor,
|
|
534
|
-
},
|
|
535
|
-
diagnosticsText: {
|
|
536
|
-
fontFamily: AppFonts.interRegular,
|
|
537
|
-
fontSize: 11,
|
|
538
|
-
color: '#E2DFEB',
|
|
539
|
-
lineHeight: 17,
|
|
540
|
-
},
|
|
541
|
-
recipientBadge: {
|
|
542
|
-
marginTop: 12,
|
|
543
|
-
paddingVertical: 6,
|
|
544
|
-
paddingHorizontal: 10,
|
|
545
|
-
borderRadius: 6,
|
|
546
|
-
backgroundColor: AppColors.grayBackground,
|
|
547
|
-
borderWidth: 1,
|
|
548
|
-
borderColor: AppColors.dividerColor,
|
|
549
|
-
alignSelf: 'flex-start',
|
|
550
|
-
},
|
|
551
|
-
recipientText: {
|
|
552
|
-
fontFamily: AppFonts.interRegular,
|
|
553
|
-
fontSize: 11,
|
|
554
|
-
color: AppColors.grayText,
|
|
555
|
-
},
|
|
556
|
-
recipientHighlight: {
|
|
557
|
-
fontFamily: AppFonts.interSemiBold,
|
|
558
|
-
color: AppColors.purple,
|
|
559
|
-
},
|
|
560
|
-
footer: {
|
|
561
|
-
flexDirection: 'row',
|
|
562
|
-
alignItems: 'center',
|
|
563
|
-
justifyContent: 'space-between',
|
|
564
|
-
paddingHorizontal: 14,
|
|
565
|
-
paddingTop: 10,
|
|
566
|
-
paddingBottom: 14,
|
|
567
|
-
borderTopWidth: 1,
|
|
568
|
-
borderTopColor: AppColors.dividerColor,
|
|
569
|
-
backgroundColor: AppColors.primaryLight,
|
|
570
|
-
},
|
|
571
|
-
copyDraftBtn: {
|
|
572
|
-
flexDirection: 'row',
|
|
573
|
-
alignItems: 'center',
|
|
574
|
-
gap: 5,
|
|
575
|
-
paddingVertical: 8,
|
|
576
|
-
paddingHorizontal: 10,
|
|
577
|
-
borderRadius: 8,
|
|
578
|
-
backgroundColor: AppColors.grayBackground,
|
|
579
|
-
borderWidth: 1,
|
|
580
|
-
borderColor: AppColors.dividerColor,
|
|
581
|
-
},
|
|
582
|
-
copyDraftBtnText: {
|
|
583
|
-
fontFamily: AppFonts.interMedium,
|
|
584
|
-
fontSize: 11.5,
|
|
585
|
-
color: AppColors.grayText,
|
|
586
|
-
},
|
|
587
|
-
footerRight: {
|
|
588
|
-
flexDirection: 'row',
|
|
589
|
-
alignItems: 'center',
|
|
590
|
-
gap: 8,
|
|
591
|
-
},
|
|
592
|
-
cancelBtn: {
|
|
593
|
-
paddingVertical: 8,
|
|
594
|
-
paddingHorizontal: 14,
|
|
595
|
-
borderRadius: 8,
|
|
596
|
-
backgroundColor: AppColors.grayBackground,
|
|
597
|
-
borderWidth: 1,
|
|
598
|
-
borderColor: AppColors.dividerColor,
|
|
599
|
-
},
|
|
600
|
-
cancelBtnText: {
|
|
601
|
-
fontFamily: AppFonts.interMedium,
|
|
602
|
-
fontSize: 12.5,
|
|
603
|
-
color: AppColors.grayText,
|
|
604
|
-
},
|
|
605
|
-
submitBtn: {
|
|
606
|
-
flexDirection: 'row',
|
|
607
|
-
alignItems: 'center',
|
|
608
|
-
gap: 6,
|
|
609
|
-
backgroundColor: AppColors.purple,
|
|
610
|
-
paddingVertical: 8,
|
|
611
|
-
paddingHorizontal: 15,
|
|
612
|
-
borderRadius: 8,
|
|
613
|
-
shadowColor: AppColors.purple,
|
|
614
|
-
shadowOffset: {width: 0, height: 2},
|
|
615
|
-
shadowOpacity: 0.35,
|
|
616
|
-
shadowRadius: 6,
|
|
617
|
-
elevation: 4,
|
|
618
|
-
},
|
|
619
|
-
submitBtnText: {
|
|
620
|
-
fontFamily: AppFonts.interSemiBold,
|
|
621
|
-
fontSize: 12.5,
|
|
622
|
-
color: AppColors.white,
|
|
623
|
-
},
|
|
624
|
-
});
|
|
625
|
-
|
|
626
|
-
export default FeedbackModal;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import {createContext, useContext} from 'react';
|
|
2
|
-
import {InspectorContextValue} from '../../types';
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
InspectorContextValue,
|
|
6
|
-
InspectorStorage,
|
|
7
|
-
ModalAnimationType,
|
|
8
|
-
SettingsPage,
|
|
9
|
-
SettingsSubTab,
|
|
10
|
-
LogFilter,
|
|
11
|
-
} from '../../types';
|
|
12
|
-
|
|
13
|
-
export const InspectorContext = createContext<InspectorContextValue | null>(
|
|
14
|
-
null,
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
export const useInspector = (): InspectorContextValue => {
|
|
18
|
-
const ctx = useContext(InspectorContext);
|
|
19
|
-
if (!ctx) {
|
|
20
|
-
throw new Error('useInspector must be used within <InspectorContext.Provider>');
|
|
21
|
-
}
|
|
22
|
-
return ctx;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
export const animateNextLayout = () => {
|
|
26
|
-
// Disabled LayoutAnimation to prevent iOS NSRangeException crashes under Fabric
|
|
27
|
-
// and Android rendering performance freezes.
|
|
28
|
-
};
|