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.
- package/README.md +14 -14
- package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +67 -0
- package/dist/commonjs/analytics.js +1 -24
- package/dist/commonjs/bundle.js +1 -16
- package/dist/commonjs/capture.js +1 -35
- 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.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 +243 -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 +74 -875
- package/dist/commonjs/components/Inspector/DeviceInfoTab.js +143 -907
- package/dist/commonjs/components/Inspector/FabLauncher.js +42 -466
- package/dist/commonjs/components/Inspector/FeatureUnderDevNotice.js +6 -99
- package/dist/commonjs/components/Inspector/InspectorContext.js +1 -21
- package/dist/commonjs/components/Inspector/InspectorHeader.js +191 -1110
- package/dist/commonjs/components/Inspector/LogDetail.js +168 -994
- package/dist/commonjs/components/Inspector/MainScreen.js +52 -335
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +97 -644
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +90 -605
- package/dist/commonjs/components/Inspector/NavigationTracker.js +1 -12
- package/dist/commonjs/components/Inspector/NetworkDetail.js +89 -411
- 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 +18 -434
- 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 +427 -3807
- 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 +36 -334
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +37 -412
- package/dist/commonjs/components/JsonViewer.js +168 -381
- 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 +13 -0
- package/dist/commonjs/components/NetworkIcons.js +521 -1022
- package/dist/commonjs/components/QRCodeView.js +5 -79
- package/dist/commonjs/components/SectionHeader.js +15 -37
- package/dist/commonjs/components/SegmentedTabs.js +7 -62
- 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.d.ts +1 -0
- 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 -1140
- package/dist/commonjs/index.js +5 -2168
- package/dist/commonjs/metro.js +6 -468
- package/dist/commonjs/native/NativeInspector.d.ts +1 -0
- package/dist/commonjs/native/NativeInspector.js +1 -415
- 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 +0 -1
- package/dist/commonjs/types/enums.js +1 -152
- package/dist/commonjs/types/index.js +1 -18
- package/dist/commonjs/types/interfaces.d.ts +2 -2
- 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.js +1 -32
- 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.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 +243 -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 +164 -925
- package/dist/esm/components/Inspector/DeviceInfoTab.js +199 -924
- package/dist/esm/components/Inspector/FabLauncher.js +68 -454
- package/dist/esm/components/Inspector/FeatureUnderDevNotice.js +14 -70
- package/dist/esm/components/Inspector/InspectorContext.js +1 -12
- package/dist/esm/components/Inspector/InspectorHeader.js +282 -1163
- package/dist/esm/components/Inspector/LogDetail.js +235 -1023
- package/dist/esm/components/Inspector/MainScreen.js +78 -323
- package/dist/esm/components/Inspector/MediaGalleryTab.js +143 -650
- package/dist/esm/components/Inspector/MediaPreviewModal.js +138 -613
- package/dist/esm/components/Inspector/NavigationTracker.js +1 -10
- package/dist/esm/components/Inspector/NetworkDetail.js +138 -455
- 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 +643 -3985
- 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 +45 -305
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +80 -418
- package/dist/esm/components/JsonViewer.js +179 -354
- 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 +13 -0
- package/dist/esm/components/NetworkIcons.js +523 -838
- package/dist/esm/components/QRCodeView.js +8 -45
- package/dist/esm/components/SectionHeader.js +22 -39
- package/dist/esm/components/SegmentedTabs.js +8 -58
- 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.d.ts +1 -0
- 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 -1140
- package/dist/esm/index.js +7 -1982
- package/dist/esm/metro.js +6 -459
- package/dist/esm/native/NativeInspector.d.ts +1 -0
- package/dist/esm/native/NativeInspector.js +1 -382
- 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 +0 -1
- package/dist/esm/types/enums.js +1 -149
- package/dist/esm/types/index.js +1 -2
- package/dist/esm/types/interfaces.d.ts +2 -2
- package/dist/esm/types/interfaces.js +1 -1
- package/ios/NetworkInspectorModule.mm +60 -12
- package/package.json +5 -3
- package/src/native/NativeInspector.ts +18 -0
- package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/commonjs/components/Inspector/FeedbackModal.js +0 -552
- package/dist/esm/components/Inspector/FeedbackModal.d.ts +0 -7
- package/dist/esm/components/Inspector/FeedbackModal.js +0 -515
- package/src/analytics.ts +0 -35
- package/src/bundle.ts +0 -25
- package/src/capture.ts +0 -109
- 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 -97
- 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 -590
- 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 -1583
- package/src/components/Inspector/LogDetail.tsx +0 -1431
- package/src/components/Inspector/MainScreen.tsx +0 -460
- package/src/components/Inspector/MediaGalleryTab.tsx +0 -829
- package/src/components/Inspector/MediaPreviewModal.tsx +0 -783
- package/src/components/Inspector/NavigationTracker.tsx +0 -13
- package/src/components/Inspector/NetworkDetail.tsx +0 -778
- 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 -5136
- package/src/components/Inspector/SkeletonPlaceholder.tsx +0 -206
- package/src/components/Inspector/StorageTab.tsx +0 -1159
- package/src/components/Inspector/TabBar.tsx +0 -431
- package/src/components/Inspector/UpdateAvailableModal.tsx +0 -555
- package/src/components/JsonViewer.tsx +0 -549
- 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 -2655
- package/src/components/QRCodeView.tsx +0 -75
- package/src/components/SectionHeader.tsx +0 -101
- package/src/components/SegmentedTabs.tsx +0 -84
- 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 -1141
- package/src/index.tsx +0 -2650
- 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 -210
- package/src/types/index.ts +0 -34
- package/src/types/interfaces.ts +0 -535
|
@@ -1,555 +0,0 @@
|
|
|
1
|
-
import React, {useState, useEffect} from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Modal,
|
|
4
|
-
View,
|
|
5
|
-
Text,
|
|
6
|
-
TouchableOpacity,
|
|
7
|
-
StyleSheet,
|
|
8
|
-
Animated,
|
|
9
|
-
Platform,
|
|
10
|
-
Linking,
|
|
11
|
-
} from 'react-native';
|
|
12
|
-
import Svg, {Path} from 'react-native-svg';
|
|
13
|
-
import {BrandSquareIcon} from '../BrandSquareIcon';
|
|
14
|
-
import {NpmIcon} from '../NetworkIcons';
|
|
15
|
-
import {LIB_VERSION} from '../../constants';
|
|
16
|
-
import {copyToClipboard} from '../../helpers';
|
|
17
|
-
import {showToast} from '../../helpers/toast';
|
|
18
|
-
import {AppFonts} from '../../styles/AppFonts';
|
|
19
|
-
import {AppColors} from '../../styles/AppColors';
|
|
20
|
-
|
|
21
|
-
// ─── Crisp SVG Icons ─────────────────────────────────────────────────────────
|
|
22
|
-
|
|
23
|
-
const CopySvg = ({size = 14, color = '#64748B'}: {size?: number; color?: string}) => (
|
|
24
|
-
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
25
|
-
<Path
|
|
26
|
-
d="M8 4v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2h-8a2 2 0 0 0-2 2z"
|
|
27
|
-
stroke={color}
|
|
28
|
-
strokeWidth="2"
|
|
29
|
-
strokeLinecap="round"
|
|
30
|
-
strokeLinejoin="round"
|
|
31
|
-
/>
|
|
32
|
-
<Path
|
|
33
|
-
d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"
|
|
34
|
-
stroke={color}
|
|
35
|
-
strokeWidth="2"
|
|
36
|
-
strokeLinecap="round"
|
|
37
|
-
strokeLinejoin="round"
|
|
38
|
-
/>
|
|
39
|
-
</Svg>
|
|
40
|
-
);
|
|
41
|
-
|
|
42
|
-
const CheckSvg = ({size = 14, color = '#10B981'}: {size?: number; color?: string}) => (
|
|
43
|
-
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
44
|
-
<Path
|
|
45
|
-
d="M20 6L9 17l-5-5"
|
|
46
|
-
stroke={color}
|
|
47
|
-
strokeWidth="2.4"
|
|
48
|
-
strokeLinecap="round"
|
|
49
|
-
strokeLinejoin="round"
|
|
50
|
-
/>
|
|
51
|
-
</Svg>
|
|
52
|
-
);
|
|
53
|
-
|
|
54
|
-
const ExternalLinkSvg = ({size = 13, color = '#FFFFFF'}: {size?: number; color?: string}) => (
|
|
55
|
-
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
56
|
-
<Path
|
|
57
|
-
d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"
|
|
58
|
-
stroke={color}
|
|
59
|
-
strokeWidth="2"
|
|
60
|
-
strokeLinecap="round"
|
|
61
|
-
strokeLinejoin="round"
|
|
62
|
-
/>
|
|
63
|
-
<Path
|
|
64
|
-
d="M15 3h6v6"
|
|
65
|
-
stroke={color}
|
|
66
|
-
strokeWidth="2"
|
|
67
|
-
strokeLinecap="round"
|
|
68
|
-
strokeLinejoin="round"
|
|
69
|
-
/>
|
|
70
|
-
<Path
|
|
71
|
-
d="M10 14L21 3"
|
|
72
|
-
stroke={color}
|
|
73
|
-
strokeWidth="2"
|
|
74
|
-
strokeLinecap="round"
|
|
75
|
-
strokeLinejoin="round"
|
|
76
|
-
/>
|
|
77
|
-
</Svg>
|
|
78
|
-
);
|
|
79
|
-
|
|
80
|
-
const CloseSvg = ({size = 13, color = '#64748B'}: {size?: number; color?: string}) => (
|
|
81
|
-
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
82
|
-
<Path
|
|
83
|
-
d="M18 6L6 18M6 6l12 12"
|
|
84
|
-
stroke={color}
|
|
85
|
-
strokeWidth="2.2"
|
|
86
|
-
strokeLinecap="round"
|
|
87
|
-
strokeLinejoin="round"
|
|
88
|
-
/>
|
|
89
|
-
</Svg>
|
|
90
|
-
);
|
|
91
|
-
|
|
92
|
-
const SparkleSvg = ({size = 14, color = '#F59E0B'}: {size?: number; color?: string}) => (
|
|
93
|
-
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
94
|
-
<Path
|
|
95
|
-
d="M12 2l2.4 6.6L21 11l-6.6 2.4L12 20l-2.4-6.6L3 11l6.6-2.4L12 2z"
|
|
96
|
-
fill={color}
|
|
97
|
-
/>
|
|
98
|
-
</Svg>
|
|
99
|
-
);
|
|
100
|
-
|
|
101
|
-
const ArrowRightSvg = ({size = 14, color = '#94A3B8'}: {size?: number; color?: string}) => (
|
|
102
|
-
<Svg width={size} height={size} viewBox="0 0 24 24" fill="none">
|
|
103
|
-
<Path
|
|
104
|
-
d="M5 12h14M12 5l7 7-7 7"
|
|
105
|
-
stroke={color}
|
|
106
|
-
strokeWidth="2.2"
|
|
107
|
-
strokeLinecap="round"
|
|
108
|
-
strokeLinejoin="round"
|
|
109
|
-
/>
|
|
110
|
-
</Svg>
|
|
111
|
-
);
|
|
112
|
-
|
|
113
|
-
interface UpdateAvailableModalProps {
|
|
114
|
-
visible: boolean;
|
|
115
|
-
latestVersion: string | null;
|
|
116
|
-
onClose: () => void;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export const UpdateAvailableModal: React.FC<UpdateAvailableModalProps> = ({
|
|
120
|
-
visible,
|
|
121
|
-
latestVersion,
|
|
122
|
-
onClose,
|
|
123
|
-
}) => {
|
|
124
|
-
const [copied, setCopied] = useState(false);
|
|
125
|
-
const fadeAnim = useState(new Animated.Value(0))[0];
|
|
126
|
-
const scaleAnim = useState(new Animated.Value(0.92))[0];
|
|
127
|
-
|
|
128
|
-
const installCommand = `npm install react-native-inapp-inspector@latest`;
|
|
129
|
-
|
|
130
|
-
if (typeof __DEV__ === 'undefined' || !__DEV__) return null;
|
|
131
|
-
|
|
132
|
-
useEffect(() => {
|
|
133
|
-
if (visible) {
|
|
134
|
-
setCopied(false);
|
|
135
|
-
Animated.parallel([
|
|
136
|
-
Animated.timing(fadeAnim, {
|
|
137
|
-
toValue: 1,
|
|
138
|
-
duration: 220,
|
|
139
|
-
useNativeDriver: true,
|
|
140
|
-
}),
|
|
141
|
-
Animated.spring(scaleAnim, {
|
|
142
|
-
toValue: 1,
|
|
143
|
-
friction: 8,
|
|
144
|
-
tension: 50,
|
|
145
|
-
useNativeDriver: true,
|
|
146
|
-
}),
|
|
147
|
-
]).start();
|
|
148
|
-
}
|
|
149
|
-
}, [visible, fadeAnim, scaleAnim]);
|
|
150
|
-
|
|
151
|
-
const handleClose = () => {
|
|
152
|
-
Animated.parallel([
|
|
153
|
-
Animated.timing(fadeAnim, {
|
|
154
|
-
toValue: 0,
|
|
155
|
-
duration: 160,
|
|
156
|
-
useNativeDriver: true,
|
|
157
|
-
}),
|
|
158
|
-
Animated.timing(scaleAnim, {
|
|
159
|
-
toValue: 0.92,
|
|
160
|
-
duration: 160,
|
|
161
|
-
useNativeDriver: true,
|
|
162
|
-
}),
|
|
163
|
-
]).start(() => {
|
|
164
|
-
onClose();
|
|
165
|
-
});
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
const handleCopyCommand = () => {
|
|
169
|
-
copyToClipboard(installCommand, 'Install Command');
|
|
170
|
-
setCopied(true);
|
|
171
|
-
showToast('Copied npm install command to clipboard!');
|
|
172
|
-
setTimeout(() => {
|
|
173
|
-
setCopied(false);
|
|
174
|
-
}, 2500);
|
|
175
|
-
};
|
|
176
|
-
|
|
177
|
-
const handleOpenNpm = () => {
|
|
178
|
-
Linking.openURL('https://www.npmjs.com/package/react-native-inapp-inspector').catch(() => {});
|
|
179
|
-
handleClose();
|
|
180
|
-
};
|
|
181
|
-
|
|
182
|
-
if (!visible) return null;
|
|
183
|
-
|
|
184
|
-
return (
|
|
185
|
-
<Modal
|
|
186
|
-
transparent
|
|
187
|
-
visible={visible}
|
|
188
|
-
animationType="none"
|
|
189
|
-
statusBarTranslucent
|
|
190
|
-
onRequestClose={handleClose}>
|
|
191
|
-
<View style={styles.overlay}>
|
|
192
|
-
<Animated.View
|
|
193
|
-
style={[
|
|
194
|
-
styles.card,
|
|
195
|
-
{
|
|
196
|
-
opacity: fadeAnim,
|
|
197
|
-
transform: [{scale: scaleAnim}],
|
|
198
|
-
},
|
|
199
|
-
]}>
|
|
200
|
-
{/* Top-Right Dismiss Button */}
|
|
201
|
-
<TouchableOpacity
|
|
202
|
-
style={styles.topCloseButton}
|
|
203
|
-
onPress={handleClose}
|
|
204
|
-
hitSlop={10}
|
|
205
|
-
activeOpacity={0.7}>
|
|
206
|
-
<CloseSvg size={13} color="#64748B" />
|
|
207
|
-
</TouchableOpacity>
|
|
208
|
-
|
|
209
|
-
{/* Header section with brand square icon & sparkle */}
|
|
210
|
-
<View style={styles.headerSection}>
|
|
211
|
-
<View style={styles.iconHaloRing}>
|
|
212
|
-
<BrandSquareIcon size={52} />
|
|
213
|
-
<View style={styles.sparkleBadge}>
|
|
214
|
-
<SparkleSvg size={13} color="#F59E0B" />
|
|
215
|
-
</View>
|
|
216
|
-
</View>
|
|
217
|
-
|
|
218
|
-
<Text style={styles.title}>Update Available</Text>
|
|
219
|
-
<Text style={styles.subtitle}>
|
|
220
|
-
A newer release of react-native-inapp-inspector is ready
|
|
221
|
-
</Text>
|
|
222
|
-
</View>
|
|
223
|
-
|
|
224
|
-
{/* Version Comparison Card */}
|
|
225
|
-
<View style={styles.versionComparisonCard}>
|
|
226
|
-
<View style={styles.versionColumn}>
|
|
227
|
-
<Text style={styles.versionLabel}>INSTALLED</Text>
|
|
228
|
-
<View style={styles.installedChip}>
|
|
229
|
-
<Text style={styles.installedText}>v{LIB_VERSION}</Text>
|
|
230
|
-
</View>
|
|
231
|
-
</View>
|
|
232
|
-
|
|
233
|
-
<View style={styles.arrowContainer}>
|
|
234
|
-
<ArrowRightSvg size={14} color="#94A3B8" />
|
|
235
|
-
</View>
|
|
236
|
-
|
|
237
|
-
<View style={styles.versionColumn}>
|
|
238
|
-
<Text style={styles.versionLabel}>LATEST ON NPM</Text>
|
|
239
|
-
<View style={styles.latestChip}>
|
|
240
|
-
<NpmIcon size={12} color="#CB3837" />
|
|
241
|
-
<Text style={styles.latestText}>v{latestVersion || 'latest'}</Text>
|
|
242
|
-
</View>
|
|
243
|
-
</View>
|
|
244
|
-
</View>
|
|
245
|
-
|
|
246
|
-
{/* Quick Install Snippet Box */}
|
|
247
|
-
<View style={styles.codeSnippetBox}>
|
|
248
|
-
<View style={styles.codeSnippetHeader}>
|
|
249
|
-
<Text style={styles.codeSnippetLabel}>UPGRADE COMMAND</Text>
|
|
250
|
-
{copied && (
|
|
251
|
-
<View style={styles.copiedIndicator}>
|
|
252
|
-
<CheckSvg size={11} color="#10B981" />
|
|
253
|
-
<Text style={styles.copiedText}>Copied</Text>
|
|
254
|
-
</View>
|
|
255
|
-
)}
|
|
256
|
-
</View>
|
|
257
|
-
|
|
258
|
-
<TouchableOpacity
|
|
259
|
-
style={styles.commandRow}
|
|
260
|
-
onPress={handleCopyCommand}
|
|
261
|
-
activeOpacity={0.75}>
|
|
262
|
-
<Text style={styles.commandText} numberOfLines={1}>
|
|
263
|
-
{installCommand}
|
|
264
|
-
</Text>
|
|
265
|
-
<View style={styles.copyIconWrapper}>
|
|
266
|
-
{copied ? <CheckSvg size={14} color="#10B981" /> : <CopySvg size={14} color="#64748B" />}
|
|
267
|
-
</View>
|
|
268
|
-
</TouchableOpacity>
|
|
269
|
-
</View>
|
|
270
|
-
|
|
271
|
-
{/* Action Buttons */}
|
|
272
|
-
<View style={styles.buttonRow}>
|
|
273
|
-
<TouchableOpacity
|
|
274
|
-
style={styles.secondaryButton}
|
|
275
|
-
onPress={handleClose}
|
|
276
|
-
activeOpacity={0.7}>
|
|
277
|
-
<Text style={styles.secondaryButtonText}>Later</Text>
|
|
278
|
-
</TouchableOpacity>
|
|
279
|
-
|
|
280
|
-
<TouchableOpacity
|
|
281
|
-
style={styles.primaryButton}
|
|
282
|
-
onPress={handleOpenNpm}
|
|
283
|
-
activeOpacity={0.85}>
|
|
284
|
-
<Text style={styles.primaryButtonText}>View on NPM</Text>
|
|
285
|
-
<ExternalLinkSvg size={12} color="#FFFFFF" />
|
|
286
|
-
</TouchableOpacity>
|
|
287
|
-
</View>
|
|
288
|
-
</Animated.View>
|
|
289
|
-
</View>
|
|
290
|
-
</Modal>
|
|
291
|
-
);
|
|
292
|
-
};
|
|
293
|
-
|
|
294
|
-
const fontStack = {
|
|
295
|
-
fontFamily: AppFonts.interRegular,
|
|
296
|
-
};
|
|
297
|
-
|
|
298
|
-
const styles = StyleSheet.create({
|
|
299
|
-
overlay: {
|
|
300
|
-
flex: 1,
|
|
301
|
-
backgroundColor: 'rgba(15, 23, 42, 0.62)',
|
|
302
|
-
justifyContent: 'center',
|
|
303
|
-
alignItems: 'center',
|
|
304
|
-
paddingHorizontal: 20,
|
|
305
|
-
zIndex: 999999,
|
|
306
|
-
},
|
|
307
|
-
card: {
|
|
308
|
-
width: '100%',
|
|
309
|
-
maxWidth: 360,
|
|
310
|
-
backgroundColor: '#FFFFFF',
|
|
311
|
-
borderRadius: 24,
|
|
312
|
-
borderWidth: 1,
|
|
313
|
-
borderColor: '#E2E8F0',
|
|
314
|
-
paddingHorizontal: 20,
|
|
315
|
-
paddingTop: 22,
|
|
316
|
-
paddingBottom: 20,
|
|
317
|
-
alignItems: 'center',
|
|
318
|
-
shadowColor: '#0F172A',
|
|
319
|
-
shadowOffset: {width: 0, height: 18},
|
|
320
|
-
shadowOpacity: 0.24,
|
|
321
|
-
shadowRadius: 36,
|
|
322
|
-
elevation: 24,
|
|
323
|
-
},
|
|
324
|
-
topCloseButton: {
|
|
325
|
-
position: 'absolute',
|
|
326
|
-
top: 14,
|
|
327
|
-
right: 14,
|
|
328
|
-
width: 28,
|
|
329
|
-
height: 28,
|
|
330
|
-
borderRadius: 14,
|
|
331
|
-
backgroundColor: '#F8FAFC',
|
|
332
|
-
justifyContent: 'center',
|
|
333
|
-
alignItems: 'center',
|
|
334
|
-
borderWidth: 1,
|
|
335
|
-
borderColor: '#E2E8F0',
|
|
336
|
-
zIndex: 10,
|
|
337
|
-
},
|
|
338
|
-
headerSection: {
|
|
339
|
-
alignItems: 'center',
|
|
340
|
-
width: '100%',
|
|
341
|
-
marginBottom: 12,
|
|
342
|
-
},
|
|
343
|
-
iconHaloRing: {
|
|
344
|
-
width: 66,
|
|
345
|
-
height: 66,
|
|
346
|
-
borderRadius: 20,
|
|
347
|
-
backgroundColor: '#FAF5FF',
|
|
348
|
-
justifyContent: 'center',
|
|
349
|
-
alignItems: 'center',
|
|
350
|
-
borderWidth: 1.5,
|
|
351
|
-
borderColor: '#F3E8FF',
|
|
352
|
-
marginBottom: 8,
|
|
353
|
-
shadowColor: '#7C3AED',
|
|
354
|
-
shadowOffset: {width: 0, height: 4},
|
|
355
|
-
shadowOpacity: 0.16,
|
|
356
|
-
shadowRadius: 10,
|
|
357
|
-
elevation: 4,
|
|
358
|
-
},
|
|
359
|
-
sparkleBadge: {
|
|
360
|
-
position: 'absolute',
|
|
361
|
-
top: -4,
|
|
362
|
-
right: -4,
|
|
363
|
-
width: 22,
|
|
364
|
-
height: 22,
|
|
365
|
-
borderRadius: 11,
|
|
366
|
-
backgroundColor: '#FEF3C7',
|
|
367
|
-
justifyContent: 'center',
|
|
368
|
-
alignItems: 'center',
|
|
369
|
-
borderWidth: 1.5,
|
|
370
|
-
borderColor: '#FFFFFF',
|
|
371
|
-
},
|
|
372
|
-
title: {
|
|
373
|
-
fontSize: 17.5,
|
|
374
|
-
fontWeight: '800',
|
|
375
|
-
color: '#0F172A',
|
|
376
|
-
letterSpacing: -0.4,
|
|
377
|
-
textAlign: 'center',
|
|
378
|
-
lineHeight: 22,
|
|
379
|
-
marginBottom: 2,
|
|
380
|
-
...fontStack,
|
|
381
|
-
},
|
|
382
|
-
subtitle: {
|
|
383
|
-
fontSize: 12,
|
|
384
|
-
fontWeight: '500',
|
|
385
|
-
color: '#64748B',
|
|
386
|
-
textAlign: 'center',
|
|
387
|
-
lineHeight: 16,
|
|
388
|
-
paddingHorizontal: 8,
|
|
389
|
-
...fontStack,
|
|
390
|
-
},
|
|
391
|
-
versionComparisonCard: {
|
|
392
|
-
flexDirection: 'row',
|
|
393
|
-
alignItems: 'center',
|
|
394
|
-
justifyContent: 'space-between',
|
|
395
|
-
backgroundColor: '#F8FAFC',
|
|
396
|
-
borderRadius: 14,
|
|
397
|
-
borderWidth: 1,
|
|
398
|
-
borderColor: '#E2E8F0',
|
|
399
|
-
paddingVertical: 10,
|
|
400
|
-
paddingHorizontal: 14,
|
|
401
|
-
marginBottom: 12,
|
|
402
|
-
width: '100%',
|
|
403
|
-
},
|
|
404
|
-
versionColumn: {
|
|
405
|
-
alignItems: 'center',
|
|
406
|
-
gap: 4,
|
|
407
|
-
},
|
|
408
|
-
versionLabel: {
|
|
409
|
-
fontSize: 9.5,
|
|
410
|
-
fontWeight: '700',
|
|
411
|
-
color: '#94A3B8',
|
|
412
|
-
letterSpacing: 0.6,
|
|
413
|
-
...fontStack,
|
|
414
|
-
},
|
|
415
|
-
installedChip: {
|
|
416
|
-
backgroundColor: '#E2E8F0',
|
|
417
|
-
paddingHorizontal: 8,
|
|
418
|
-
paddingVertical: 3,
|
|
419
|
-
borderRadius: 6,
|
|
420
|
-
},
|
|
421
|
-
installedText: {
|
|
422
|
-
fontSize: 12,
|
|
423
|
-
fontWeight: '700',
|
|
424
|
-
color: '#475569',
|
|
425
|
-
...fontStack,
|
|
426
|
-
},
|
|
427
|
-
arrowContainer: {
|
|
428
|
-
paddingHorizontal: 6,
|
|
429
|
-
},
|
|
430
|
-
arrowText: {
|
|
431
|
-
fontSize: 14,
|
|
432
|
-
color: '#94A3B8',
|
|
433
|
-
fontWeight: '700',
|
|
434
|
-
},
|
|
435
|
-
latestChip: {
|
|
436
|
-
flexDirection: 'row',
|
|
437
|
-
alignItems: 'center',
|
|
438
|
-
gap: 4,
|
|
439
|
-
backgroundColor: '#EDE9FE',
|
|
440
|
-
paddingHorizontal: 8,
|
|
441
|
-
paddingVertical: 3,
|
|
442
|
-
borderRadius: 6,
|
|
443
|
-
borderWidth: 1,
|
|
444
|
-
borderColor: '#DDD6FE',
|
|
445
|
-
},
|
|
446
|
-
latestText: {
|
|
447
|
-
fontSize: 12,
|
|
448
|
-
fontWeight: '800',
|
|
449
|
-
color: '#6D28D9',
|
|
450
|
-
...fontStack,
|
|
451
|
-
},
|
|
452
|
-
codeSnippetBox: {
|
|
453
|
-
backgroundColor: '#0F172A',
|
|
454
|
-
borderRadius: 12,
|
|
455
|
-
padding: 10,
|
|
456
|
-
width: '100%',
|
|
457
|
-
marginBottom: 14,
|
|
458
|
-
borderWidth: 1,
|
|
459
|
-
borderColor: '#1E293B',
|
|
460
|
-
},
|
|
461
|
-
codeSnippetHeader: {
|
|
462
|
-
flexDirection: 'row',
|
|
463
|
-
justifyContent: 'space-between',
|
|
464
|
-
alignItems: 'center',
|
|
465
|
-
marginBottom: 6,
|
|
466
|
-
},
|
|
467
|
-
codeSnippetLabel: {
|
|
468
|
-
fontSize: 9.5,
|
|
469
|
-
fontWeight: '700',
|
|
470
|
-
color: '#64748B',
|
|
471
|
-
letterSpacing: 0.6,
|
|
472
|
-
...fontStack,
|
|
473
|
-
},
|
|
474
|
-
copiedIndicator: {
|
|
475
|
-
flexDirection: 'row',
|
|
476
|
-
alignItems: 'center',
|
|
477
|
-
gap: 3,
|
|
478
|
-
},
|
|
479
|
-
copiedText: {
|
|
480
|
-
fontSize: 9.5,
|
|
481
|
-
fontWeight: '600',
|
|
482
|
-
color: '#10B981',
|
|
483
|
-
...fontStack,
|
|
484
|
-
},
|
|
485
|
-
commandRow: {
|
|
486
|
-
flexDirection: 'row',
|
|
487
|
-
alignItems: 'center',
|
|
488
|
-
justifyContent: 'space-between',
|
|
489
|
-
backgroundColor: '#1E293B',
|
|
490
|
-
borderRadius: 8,
|
|
491
|
-
paddingVertical: 7,
|
|
492
|
-
paddingHorizontal: 9,
|
|
493
|
-
gap: 8,
|
|
494
|
-
},
|
|
495
|
-
commandText: {
|
|
496
|
-
flex: 1,
|
|
497
|
-
fontSize: 11,
|
|
498
|
-
fontFamily: AppFonts.interRegular,
|
|
499
|
-
color: '#38BDF8',
|
|
500
|
-
},
|
|
501
|
-
copyIconWrapper: {
|
|
502
|
-
width: 22,
|
|
503
|
-
height: 22,
|
|
504
|
-
borderRadius: 6,
|
|
505
|
-
backgroundColor: '#334155',
|
|
506
|
-
justifyContent: 'center',
|
|
507
|
-
alignItems: 'center',
|
|
508
|
-
},
|
|
509
|
-
buttonRow: {
|
|
510
|
-
flexDirection: 'row',
|
|
511
|
-
justifyContent: 'space-between',
|
|
512
|
-
alignItems: 'center',
|
|
513
|
-
gap: 10,
|
|
514
|
-
width: '100%',
|
|
515
|
-
},
|
|
516
|
-
secondaryButton: {
|
|
517
|
-
flex: 1,
|
|
518
|
-
alignItems: 'center',
|
|
519
|
-
justifyContent: 'center',
|
|
520
|
-
paddingVertical: 11,
|
|
521
|
-
borderRadius: 12,
|
|
522
|
-
backgroundColor: '#F1F5F9',
|
|
523
|
-
borderWidth: 1,
|
|
524
|
-
borderColor: '#E2E8F0',
|
|
525
|
-
},
|
|
526
|
-
secondaryButtonText: {
|
|
527
|
-
fontSize: 13,
|
|
528
|
-
fontWeight: '600',
|
|
529
|
-
color: '#475569',
|
|
530
|
-
...fontStack,
|
|
531
|
-
},
|
|
532
|
-
primaryButton: {
|
|
533
|
-
flex: 1.3,
|
|
534
|
-
flexDirection: 'row',
|
|
535
|
-
alignItems: 'center',
|
|
536
|
-
justifyContent: 'center',
|
|
537
|
-
gap: 6,
|
|
538
|
-
paddingVertical: 11,
|
|
539
|
-
borderRadius: 12,
|
|
540
|
-
backgroundColor: '#7C3AED',
|
|
541
|
-
shadowColor: '#7C3AED',
|
|
542
|
-
shadowOffset: {width: 0, height: 3},
|
|
543
|
-
shadowOpacity: 0.28,
|
|
544
|
-
shadowRadius: 6,
|
|
545
|
-
elevation: 4,
|
|
546
|
-
},
|
|
547
|
-
primaryButtonText: {
|
|
548
|
-
fontSize: 13,
|
|
549
|
-
fontWeight: '700',
|
|
550
|
-
color: '#FFFFFF',
|
|
551
|
-
...fontStack,
|
|
552
|
-
},
|
|
553
|
-
});
|
|
554
|
-
|
|
555
|
-
export default UpdateAvailableModal;
|