react-native-inapp-inspector 2.3.16 → 2.3.18
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 +438 -7
- package/bin/cli.js +0 -0
- package/dist/commonjs/capture.d.ts +26 -0
- package/dist/commonjs/capture.js +32 -0
- package/dist/commonjs/components/AnalyticsEventCard.js +11 -11
- package/dist/commonjs/components/AnimatedEntrance.js +6 -70
- package/dist/commonjs/components/DomainHeader.js +3 -48
- package/dist/commonjs/components/EmptyState.js +2 -2
- package/dist/commonjs/components/HeadersSection.js +14 -34
- package/dist/commonjs/components/Inspector/AnalyticsTab.js +1 -2
- package/dist/commonjs/components/Inspector/ConsoleTab.js +1 -1
- package/dist/commonjs/components/Inspector/CrashTab.js +4 -2
- package/dist/commonjs/components/Inspector/DebuggingTab.js +2 -2
- package/dist/commonjs/components/Inspector/InspectorHeader.js +651 -313
- package/dist/commonjs/components/Inspector/MainScreen.js +25 -70
- package/dist/commonjs/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/commonjs/components/Inspector/MediaGalleryTab.js +307 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/commonjs/components/Inspector/MediaPreviewModal.js +393 -0
- package/dist/commonjs/components/Inspector/NetworkTab.js +183 -182
- package/dist/commonjs/components/Inspector/NpmUpdateToast.js +4 -9
- package/dist/commonjs/components/Inspector/ReduxTab.js +4 -2
- package/dist/commonjs/components/Inspector/SettingsPanel.js +245 -0
- package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/Inspector/StorageTab.js +3 -3
- package/dist/commonjs/components/Inspector/TabBar.js +5 -10
- package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +5 -10
- package/dist/commonjs/components/JsonViewer.js +43 -20
- package/dist/commonjs/components/LogCard.js +5 -5
- package/dist/commonjs/components/MetaAccordion.js +78 -80
- package/dist/commonjs/components/NetworkIcons.d.ts +8 -0
- package/dist/commonjs/components/NetworkIcons.js +51 -1
- package/dist/commonjs/components/SectionHeader.js +3 -48
- package/dist/commonjs/components/SkeletonPlaceholder.js +2 -2
- package/dist/commonjs/components/SourcePageCard.js +43 -45
- package/dist/commonjs/components/Toast.js +4 -4
- package/dist/commonjs/components/TouchableScale.js +9 -65
- package/dist/commonjs/components/TreeNode.js +2 -14
- package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
- package/dist/commonjs/constants/telemetryConfig.js +3 -3
- package/dist/commonjs/constants/version.d.ts +1 -1
- package/dist/commonjs/constants/version.js +1 -1
- package/dist/commonjs/customHooks/useAccordion.d.ts +3 -8
- package/dist/commonjs/customHooks/useAccordion.js +6 -36
- package/dist/commonjs/helpers/index.d.ts +2 -1
- package/dist/commonjs/helpers/index.js +10 -1
- package/dist/commonjs/i18n/locales/en.json +66 -2
- package/dist/commonjs/index.d.ts +1 -0
- package/dist/commonjs/index.js +39 -22
- package/dist/commonjs/native/NativeInspector.d.ts +60 -0
- package/dist/commonjs/native/NativeInspector.js +109 -2
- package/dist/commonjs/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/commonjs/styles/AppColors.d.ts +36 -0
- package/dist/commonjs/styles/AppColors.js +36 -0
- package/dist/commonjs/styles/index.d.ts +3 -1
- package/dist/commonjs/styles/index.js +3 -1
- package/dist/commonjs/types/enums.d.ts +1 -0
- package/dist/commonjs/types/enums.js +1 -0
- package/dist/commonjs/types/index.d.ts +2 -2
- package/dist/esm/capture.d.ts +26 -0
- package/dist/esm/capture.js +29 -0
- package/dist/esm/components/AnalyticsEventCard.js +11 -11
- package/dist/esm/components/AnimatedEntrance.js +4 -38
- package/dist/esm/components/DomainHeader.js +4 -16
- package/dist/esm/components/EmptyState.js +2 -2
- package/dist/esm/components/HeadersSection.js +16 -36
- package/dist/esm/components/Inspector/AnalyticsTab.js +2 -3
- package/dist/esm/components/Inspector/ConsoleTab.js +2 -2
- package/dist/esm/components/Inspector/CrashTab.js +5 -3
- package/dist/esm/components/Inspector/DebuggingTab.js +3 -3
- package/dist/esm/components/Inspector/InspectorHeader.js +654 -316
- package/dist/esm/components/Inspector/MainScreen.js +25 -70
- package/dist/esm/components/Inspector/MediaGalleryTab.d.ts +2 -0
- package/dist/esm/components/Inspector/MediaGalleryTab.js +267 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +11 -0
- package/dist/esm/components/Inspector/MediaPreviewModal.js +353 -0
- package/dist/esm/components/Inspector/NetworkTab.js +185 -184
- package/dist/esm/components/Inspector/NpmUpdateToast.js +5 -10
- package/dist/esm/components/Inspector/ReduxTab.js +5 -3
- package/dist/esm/components/Inspector/SettingsPanel.js +246 -1
- package/dist/esm/components/Inspector/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/Inspector/StorageTab.js +3 -3
- package/dist/esm/components/Inspector/TabBar.js +6 -11
- package/dist/esm/components/Inspector/UpdateAvailableModal.js +6 -11
- package/dist/esm/components/JsonViewer.js +43 -20
- package/dist/esm/components/LogCard.js +5 -5
- package/dist/esm/components/MetaAccordion.js +79 -81
- package/dist/esm/components/NetworkIcons.d.ts +8 -0
- package/dist/esm/components/NetworkIcons.js +42 -0
- package/dist/esm/components/SectionHeader.js +4 -16
- package/dist/esm/components/SkeletonPlaceholder.js +2 -2
- package/dist/esm/components/SourcePageCard.js +44 -46
- package/dist/esm/components/Toast.js +4 -4
- package/dist/esm/components/TouchableScale.js +7 -33
- package/dist/esm/components/TreeNode.js +4 -16
- package/dist/esm/constants/telemetryConfig.d.ts +3 -3
- package/dist/esm/constants/telemetryConfig.js +3 -3
- package/dist/esm/constants/version.d.ts +1 -1
- package/dist/esm/constants/version.js +1 -1
- package/dist/esm/customHooks/useAccordion.d.ts +3 -8
- package/dist/esm/customHooks/useAccordion.js +7 -37
- package/dist/esm/helpers/index.d.ts +2 -1
- package/dist/esm/helpers/index.js +8 -0
- package/dist/esm/i18n/locales/en.json +66 -2
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +36 -21
- package/dist/esm/native/NativeInspector.d.ts +60 -0
- package/dist/esm/native/NativeInspector.js +100 -1
- package/dist/esm/native/NativeNetworkInspector.d.ts +8 -0
- package/dist/esm/styles/AppColors.d.ts +36 -0
- package/dist/esm/styles/AppColors.js +36 -0
- package/dist/esm/styles/index.d.ts +3 -1
- package/dist/esm/styles/index.js +3 -1
- package/dist/esm/types/enums.d.ts +1 -0
- package/dist/esm/types/enums.js +1 -0
- package/dist/esm/types/index.d.ts +2 -2
- package/ios/NetworkInspectorModule.h +1 -0
- package/ios/NetworkInspectorModule.mm +736 -7
- package/package.json +10 -2
- package/react-native-inapp-inspector.podspec +1 -0
- package/src/capture.ts +101 -0
- package/src/components/AnalyticsEventCard.tsx +15 -13
- package/src/components/AnimatedEntrance.tsx +3 -47
- package/src/components/DomainHeader.tsx +4 -17
- package/src/components/EmptyState.tsx +2 -2
- package/src/components/HeadersSection.tsx +31 -56
- package/src/components/Inspector/AnalyticsTab.tsx +2 -2
- package/src/components/Inspector/ConsoleTab.tsx +2 -1
- package/src/components/Inspector/CrashTab.tsx +4 -2
- package/src/components/Inspector/DebuggingTab.tsx +2 -2
- package/src/components/Inspector/InspectorHeader.tsx +1215 -789
- package/src/components/Inspector/MainScreen.tsx +44 -85
- package/src/components/Inspector/MediaGalleryTab.tsx +355 -0
- package/src/components/Inspector/MediaPreviewModal.tsx +435 -0
- package/src/components/Inspector/NetworkTab.tsx +14 -15
- package/src/components/Inspector/NpmUpdateToast.tsx +4 -9
- package/src/components/Inspector/ReduxTab.tsx +5 -2
- package/src/components/Inspector/SettingsPanel.tsx +303 -0
- package/src/components/Inspector/SkeletonPlaceholder.tsx +2 -2
- package/src/components/Inspector/StorageTab.tsx +3 -3
- package/src/components/Inspector/TabBar.tsx +6 -12
- package/src/components/Inspector/UpdateAvailableModal.tsx +6 -10
- package/src/components/JsonViewer.tsx +101 -60
- package/src/components/LogCard.tsx +10 -8
- package/src/components/MetaAccordion.tsx +6 -6
- package/src/components/NetworkIcons.tsx +150 -0
- package/src/components/SectionHeader.tsx +4 -16
- package/src/components/SkeletonPlaceholder.tsx +2 -2
- package/src/components/SourcePageCard.tsx +57 -55
- package/src/components/Toast.tsx +4 -4
- package/src/components/TouchableScale.tsx +8 -38
- package/src/components/TreeNode.tsx +5 -20
- package/src/constants/telemetryConfig.ts +3 -5
- package/src/constants/version.ts +1 -1
- package/src/customHooks/useAccordion.tsx +10 -43
- package/src/helpers/index.ts +10 -1
- package/src/i18n/locales/en.json +69 -2
- package/src/index.tsx +51 -23
- package/src/native/NativeInspector.ts +186 -1
- package/src/native/NativeNetworkInspector.ts +9 -0
- package/src/styles/AppColors.ts +38 -0
- package/src/styles/index.ts +3 -1
- package/src/types/enums.ts +3 -0
- package/src/types/index.ts +2 -2
- package/android/.gradle/8.9/checksums/checksums.lock +0 -0
- package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
- package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
- package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/8.9/gc.properties +0 -0
- package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
- package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/9.2.0/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +0 -1
- package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +0 -1
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
- package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +0 -10
- package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +0 -104
- package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +0 -128
- package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +0 -31
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +0 -22
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +0 -24
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +0 -19
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +0 -18
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +0 -177
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +0 -17
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +0 -23
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +0 -16
- package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +0 -20
- package/android/build/generated/source/codegen/schema.json +0 -1
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
- package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
- package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
- package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
- package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
- package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
- package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
- package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
- package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
- package/android/build/outputs/aar/react-native-inapp-inspector-debug.aar +0 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
- package/android/build/reports/problems/problems-report.html +0 -659
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
- package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-inapp-inspector",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.18",
|
|
4
4
|
"description": "The zero-config, all-in-one in-app debugger for React Native & Expo. Inspect Network (fetch/axios), Console logs, Stack Traces, Redux State, Firebase Analytics, and JS Bundle size directly on device.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -80,6 +80,13 @@
|
|
|
80
80
|
"require": "./dist/commonjs/storage.js",
|
|
81
81
|
"default": "./dist/commonjs/storage.js"
|
|
82
82
|
},
|
|
83
|
+
"./capture": {
|
|
84
|
+
"react-native": "./dist/commonjs/capture.js",
|
|
85
|
+
"types": "./dist/commonjs/capture.d.ts",
|
|
86
|
+
"import": "./dist/esm/capture.js",
|
|
87
|
+
"require": "./dist/commonjs/capture.js",
|
|
88
|
+
"default": "./dist/commonjs/capture.js"
|
|
89
|
+
},
|
|
83
90
|
"./metro": {
|
|
84
91
|
"types": "./dist/commonjs/metro.d.ts",
|
|
85
92
|
"import": "./dist/esm/metro.js",
|
|
@@ -110,7 +117,8 @@
|
|
|
110
117
|
"scripts": {
|
|
111
118
|
"clean": "rm -rf dist",
|
|
112
119
|
"prebuild": "node scripts/gen-version.js && node scripts/gen-telemetry.js",
|
|
113
|
-
"build": "
|
|
120
|
+
"build": "tsc && tsc -p tsconfig.esm.json",
|
|
121
|
+
"clean-build": "npm run clean && npm run build",
|
|
114
122
|
"prepare": "npm run build",
|
|
115
123
|
"watch": "tsc -w",
|
|
116
124
|
"prepack": "npm run build",
|
|
@@ -13,6 +13,7 @@ Pod::Spec.new do |s|
|
|
|
13
13
|
s.source = { :git => "https://github.com/vengatmacuser/react-native-inapp-inspector.git", :tag => "v#{s.version}" }
|
|
14
14
|
s.source_files = "ios/**/*.{h,m,mm,swift}"
|
|
15
15
|
s.requires_arc = true
|
|
16
|
+
s.frameworks = "AVFoundation", "ReplayKit", "CoreMedia", "CoreVideo", "ImageIO", "MobileCoreServices", "QuartzCore"
|
|
16
17
|
|
|
17
18
|
# React Native New Architecture (TurboModules & Codegen) support
|
|
18
19
|
if respond_to?(:install_modules_dependencies, true)
|
package/src/capture.ts
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import {
|
|
2
|
+
takeNativeScreenshot,
|
|
3
|
+
startNativeVideoRecording,
|
|
4
|
+
stopNativeVideoRecording,
|
|
5
|
+
isNativeRecordingActive,
|
|
6
|
+
convertNativeVideoToGif,
|
|
7
|
+
fetchCapturedMediaList,
|
|
8
|
+
deleteCapturedMediaFile,
|
|
9
|
+
clearAllCapturedMediaFiles,
|
|
10
|
+
ScreenshotOptions,
|
|
11
|
+
ScreenshotResult,
|
|
12
|
+
RecordingOptions,
|
|
13
|
+
RecordingResult,
|
|
14
|
+
GifConversionOptions,
|
|
15
|
+
CapturedMediaItem,
|
|
16
|
+
} from './native/NativeInspector';
|
|
17
|
+
|
|
18
|
+
export type {
|
|
19
|
+
ScreenshotOptions,
|
|
20
|
+
ScreenshotResult,
|
|
21
|
+
RecordingOptions,
|
|
22
|
+
RecordingResult,
|
|
23
|
+
GifConversionOptions,
|
|
24
|
+
CapturedMediaItem,
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type ImageFormat = 'png' | 'jpeg' | 'webp';
|
|
28
|
+
export type AudioSource = 'none' | 'app' | 'mic' | 'mixed';
|
|
29
|
+
export type RecordingFormat = 'mp4' | 'gif';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* ScreenCapture & Video Recording API for React Native In-App Inspector.
|
|
33
|
+
* 100% native, zero-dependency screen capture, audio-enabled video recording,
|
|
34
|
+
* and animated GIF conversion.
|
|
35
|
+
*/
|
|
36
|
+
export const ScreenCapture = {
|
|
37
|
+
/**
|
|
38
|
+
* Captures a high-resolution screenshot of the full application window.
|
|
39
|
+
*/
|
|
40
|
+
takeScreenshot: async (
|
|
41
|
+
options?: ScreenshotOptions,
|
|
42
|
+
): Promise<ScreenshotResult | null> => {
|
|
43
|
+
return takeNativeScreenshot(options);
|
|
44
|
+
},
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Starts native video or animated GIF recording with optional audio/mic narration.
|
|
48
|
+
*/
|
|
49
|
+
startRecording: async (options?: RecordingOptions): Promise<boolean> => {
|
|
50
|
+
return startNativeVideoRecording(options);
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Stops active video/GIF recording and returns the final file metadata.
|
|
55
|
+
*/
|
|
56
|
+
stopRecording: async (): Promise<RecordingResult | null> => {
|
|
57
|
+
return stopNativeVideoRecording();
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Checks if video/GIF recording is currently in progress.
|
|
62
|
+
*/
|
|
63
|
+
isRecording: async (): Promise<boolean> => {
|
|
64
|
+
return isNativeRecordingActive();
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Converts a recorded MP4 video to an animated GIF.
|
|
69
|
+
*/
|
|
70
|
+
convertToGif: async (
|
|
71
|
+
videoUri: string,
|
|
72
|
+
options?: GifConversionOptions,
|
|
73
|
+
): Promise<RecordingResult | null> => {
|
|
74
|
+
return convertNativeVideoToGif(videoUri, options);
|
|
75
|
+
},
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Retrieves the list of all captured screenshots, videos, and GIFs from local cache.
|
|
79
|
+
*/
|
|
80
|
+
getMediaList: async (): Promise<CapturedMediaItem[]> => {
|
|
81
|
+
return fetchCapturedMediaList();
|
|
82
|
+
},
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Deletes a specific captured media file from disk.
|
|
86
|
+
*/
|
|
87
|
+
deleteMedia: async (uri: string): Promise<boolean> => {
|
|
88
|
+
return deleteCapturedMediaFile(uri);
|
|
89
|
+
},
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Purges all captured screenshots, videos, and GIFs from local storage cache.
|
|
93
|
+
*/
|
|
94
|
+
clearAllMedia: async (): Promise<boolean> => {
|
|
95
|
+
return clearAllCapturedMediaFiles();
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
export const ScreenRecorder = ScreenCapture;
|
|
100
|
+
|
|
101
|
+
export default ScreenCapture;
|
|
@@ -49,7 +49,7 @@ const AnalyticsEventCard = React.memo(function AnalyticsEventCard({
|
|
|
49
49
|
Animated.timing(flashOpacity, {
|
|
50
50
|
toValue: 0,
|
|
51
51
|
duration: 1200,
|
|
52
|
-
useNativeDriver:
|
|
52
|
+
useNativeDriver: false,
|
|
53
53
|
}).start();
|
|
54
54
|
}
|
|
55
55
|
}, [isNew]);
|
|
@@ -88,18 +88,20 @@ const AnalyticsEventCard = React.memo(function AnalyticsEventCard({
|
|
|
88
88
|
borderLeftColor: tagColors.text,
|
|
89
89
|
},
|
|
90
90
|
]}>
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
91
|
+
{isNew && (
|
|
92
|
+
<Animated.View
|
|
93
|
+
style={[
|
|
94
|
+
StyleSheet.absoluteFill,
|
|
95
|
+
{
|
|
96
|
+
backgroundColor: color,
|
|
97
|
+
opacity: flashOpacity.interpolate({
|
|
98
|
+
inputRange: [0, 1],
|
|
99
|
+
outputRange: [0, 0.08],
|
|
100
|
+
}),
|
|
101
|
+
},
|
|
102
|
+
]}
|
|
103
|
+
/>
|
|
104
|
+
)}
|
|
103
105
|
|
|
104
106
|
{/* Top Row: Icon Badge, Event Name, Category Badge & Timestamp */}
|
|
105
107
|
<View style={cardStyles.cardHeader}>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {View, ViewStyle} from 'react-native';
|
|
3
3
|
|
|
4
4
|
interface AnimatedEntranceProps {
|
|
5
5
|
children: React.ReactNode;
|
|
@@ -12,53 +12,9 @@ interface AnimatedEntranceProps {
|
|
|
12
12
|
|
|
13
13
|
const AnimatedEntrance = React.memo(function AnimatedEntrance({
|
|
14
14
|
children,
|
|
15
|
-
delay = 0,
|
|
16
|
-
distance = 10,
|
|
17
|
-
duration = 220,
|
|
18
|
-
index = 0,
|
|
19
15
|
style,
|
|
20
16
|
}: AnimatedEntranceProps) {
|
|
21
|
-
|
|
22
|
-
return <View style={style}>{children}</View>;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const progress = useRef(new Animated.Value(0)).current;
|
|
26
|
-
const initialIndex = useRef(index).current;
|
|
27
|
-
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
Animated.timing(progress, {
|
|
30
|
-
toValue: 1,
|
|
31
|
-
duration,
|
|
32
|
-
delay: delay + Math.min(initialIndex, 8) * 12,
|
|
33
|
-
useNativeDriver: true,
|
|
34
|
-
}).start();
|
|
35
|
-
}, []);
|
|
36
|
-
|
|
37
|
-
return (
|
|
38
|
-
<Animated.View
|
|
39
|
-
style={[
|
|
40
|
-
style,
|
|
41
|
-
{
|
|
42
|
-
opacity: progress,
|
|
43
|
-
transform: [
|
|
44
|
-
{
|
|
45
|
-
translateY: progress.interpolate({
|
|
46
|
-
inputRange: [0, 1],
|
|
47
|
-
outputRange: [distance, 0],
|
|
48
|
-
}),
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
scale: progress.interpolate({
|
|
52
|
-
inputRange: [0, 1],
|
|
53
|
-
outputRange: [0.985, 1],
|
|
54
|
-
}),
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
},
|
|
58
|
-
]}>
|
|
59
|
-
{children}
|
|
60
|
-
</Animated.View>
|
|
61
|
-
);
|
|
17
|
+
return <View style={style}>{children}</View>;
|
|
62
18
|
});
|
|
63
19
|
|
|
64
20
|
export default AnimatedEntrance;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {Pressable, View, Text} from 'react-native';
|
|
3
3
|
|
|
4
4
|
// Stylesheet
|
|
5
5
|
import {AppColors} from '../styles/AppColors';
|
|
@@ -44,19 +44,6 @@ const DomainHeader = ({
|
|
|
44
44
|
isFirst: boolean;
|
|
45
45
|
timestamp: number;
|
|
46
46
|
}) => {
|
|
47
|
-
const chevronAnim = useRef(new Animated.Value(isCollapsed ? 0 : 1)).current;
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
Animated.timing(chevronAnim, {
|
|
50
|
-
toValue: isCollapsed ? 0 : 1,
|
|
51
|
-
duration: 220,
|
|
52
|
-
useNativeDriver: true,
|
|
53
|
-
}).start();
|
|
54
|
-
}, [isCollapsed]);
|
|
55
|
-
|
|
56
|
-
const chevronRotate = chevronAnim.interpolate({
|
|
57
|
-
inputRange: [0, 1],
|
|
58
|
-
outputRange: ['-90deg', '0deg'],
|
|
59
|
-
});
|
|
60
47
|
|
|
61
48
|
const visibleStats = ['success', 'failed', 'loading'];
|
|
62
49
|
|
|
@@ -77,9 +64,9 @@ const DomainHeader = ({
|
|
|
77
64
|
onPress={() => onToggleCollapse(pageName)}>
|
|
78
65
|
<View style={styles.domainHeaderTopRow}>
|
|
79
66
|
<View style={styles.domainHeaderLeft}>
|
|
80
|
-
<
|
|
67
|
+
<View style={{transform: [{rotate: isCollapsed ? '-90deg' : '0deg'}], flexShrink: 0}}>
|
|
81
68
|
<ChevronIcon color={AppColors.grayTextWeak} size={13} />
|
|
82
|
-
</
|
|
69
|
+
</View>
|
|
83
70
|
<View style={[styles.domainIconWrap, {backgroundColor: `${color}18`, flexShrink: 0}]}>
|
|
84
71
|
<ScreenIcon color={color} size={14} />
|
|
85
72
|
</View>
|
|
@@ -35,12 +35,12 @@ const EmptyState = React.memo(function EmptyState({
|
|
|
35
35
|
Animated.timing(iconPulse, {
|
|
36
36
|
toValue: 1.06,
|
|
37
37
|
duration: 900,
|
|
38
|
-
useNativeDriver:
|
|
38
|
+
useNativeDriver: false,
|
|
39
39
|
}),
|
|
40
40
|
Animated.timing(iconPulse, {
|
|
41
41
|
toValue: 1,
|
|
42
42
|
duration: 900,
|
|
43
|
-
useNativeDriver:
|
|
43
|
+
useNativeDriver: false,
|
|
44
44
|
}),
|
|
45
45
|
]),
|
|
46
46
|
);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, {useEffect, useMemo,
|
|
1
|
+
import React, {useEffect, useMemo, useState} from 'react';
|
|
2
2
|
import {useTranslation} from '../i18n';
|
|
3
|
-
import {View, Pressable, Text
|
|
3
|
+
import {View, Pressable, Text} from 'react-native';
|
|
4
4
|
|
|
5
5
|
// Components
|
|
6
6
|
import CopyButton from './CopyButton';
|
|
@@ -36,32 +36,9 @@ const HeaderRow = React.memo(function HeaderRow({
|
|
|
36
36
|
const [expanded, setExpanded] = useState(false);
|
|
37
37
|
const isLong = value.length > 35;
|
|
38
38
|
|
|
39
|
-
const entryAnim = useRef(new Animated.Value(0)).current;
|
|
40
|
-
|
|
41
|
-
useEffect(() => {
|
|
42
|
-
Animated.timing(entryAnim, {
|
|
43
|
-
toValue: 1,
|
|
44
|
-
duration: 220,
|
|
45
|
-
delay: index * 30,
|
|
46
|
-
useNativeDriver: true,
|
|
47
|
-
}).start();
|
|
48
|
-
}, []);
|
|
49
|
-
|
|
50
|
-
const rowAnimStyle = {
|
|
51
|
-
opacity: entryAnim,
|
|
52
|
-
transform: [
|
|
53
|
-
{
|
|
54
|
-
translateY: entryAnim.interpolate({
|
|
55
|
-
inputRange: [0, 1],
|
|
56
|
-
outputRange: [8, 0],
|
|
57
|
-
}),
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
};
|
|
61
|
-
|
|
62
39
|
return (
|
|
63
|
-
<
|
|
64
|
-
style={[styles.htRow, !isLast && styles.htRowBorder
|
|
40
|
+
<View
|
|
41
|
+
style={[styles.htRow, !isLast && styles.htRowBorder]}>
|
|
65
42
|
<View style={styles.htKeyCell}>
|
|
66
43
|
<Text style={styles.htKey} numberOfLines={2}>
|
|
67
44
|
{headerKey}
|
|
@@ -97,7 +74,7 @@ const HeaderRow = React.memo(function HeaderRow({
|
|
|
97
74
|
style={styles.htCopyBtn}>
|
|
98
75
|
<CopyIcon color={AppColors.grayTextWeak} size={14} />
|
|
99
76
|
</TouchableScale>
|
|
100
|
-
</
|
|
77
|
+
</View>
|
|
101
78
|
);
|
|
102
79
|
});
|
|
103
80
|
|
|
@@ -108,11 +85,7 @@ const HeadersSection = ({
|
|
|
108
85
|
resetKey,
|
|
109
86
|
}: HeadersSectionProps) => {
|
|
110
87
|
const {t} = useTranslation();
|
|
111
|
-
const {toggleOpen, forceOpen, chevronStyle
|
|
112
|
-
false,
|
|
113
|
-
2400,
|
|
114
|
-
300,
|
|
115
|
-
);
|
|
88
|
+
const {isOpen, toggleOpen, forceOpen, chevronStyle} = useAccordion(false);
|
|
116
89
|
|
|
117
90
|
useEffect(() => {
|
|
118
91
|
forceOpen(false);
|
|
@@ -161,35 +134,37 @@ const HeadersSection = ({
|
|
|
161
134
|
<View style={styles.htHeaderSpacer} />
|
|
162
135
|
<CopyButton value={headers} label={title} />
|
|
163
136
|
<View style={styles.htChevronBtn}>
|
|
164
|
-
<
|
|
137
|
+
<View style={chevronStyle}>
|
|
165
138
|
<ChevronIcon color={AppColors.grayTextStrong} size={14} />
|
|
166
|
-
</
|
|
139
|
+
</View>
|
|
167
140
|
</View>
|
|
168
141
|
</View>
|
|
169
142
|
</Pressable>
|
|
170
143
|
|
|
171
|
-
|
|
172
|
-
<View
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
{filtered.length > 0 ? (
|
|
178
|
-
filtered.map(([k, v], i) => (
|
|
179
|
-
<HeaderRow
|
|
180
|
-
key={k}
|
|
181
|
-
headerKey={k}
|
|
182
|
-
value={v}
|
|
183
|
-
isLast={i === filtered.length - 1}
|
|
184
|
-
index={i}
|
|
185
|
-
/>
|
|
186
|
-
))
|
|
187
|
-
) : (
|
|
188
|
-
<View style={styles.htEmpty}>
|
|
189
|
-
<Text style={styles.htEmptyText}>{t('network.noMatchingHeaders')}</Text>
|
|
144
|
+
{isOpen && (
|
|
145
|
+
<View>
|
|
146
|
+
<View style={styles.htColHeadRow}>
|
|
147
|
+
<Text style={[styles.htColHead, {width: '30%'}]}>{t('network.jsonViewer.key')}</Text>
|
|
148
|
+
<Text style={[styles.htColHead, {flex: 1}]}>{t('network.jsonViewer.value')}</Text>
|
|
190
149
|
</View>
|
|
191
|
-
|
|
192
|
-
|
|
150
|
+
|
|
151
|
+
{filtered.length > 0 ? (
|
|
152
|
+
filtered.map(([k, v], i) => (
|
|
153
|
+
<HeaderRow
|
|
154
|
+
key={k}
|
|
155
|
+
headerKey={k}
|
|
156
|
+
value={v}
|
|
157
|
+
isLast={i === filtered.length - 1}
|
|
158
|
+
index={i}
|
|
159
|
+
/>
|
|
160
|
+
))
|
|
161
|
+
) : (
|
|
162
|
+
<View style={styles.htEmpty}>
|
|
163
|
+
<Text style={styles.htEmptyText}>{t('network.noMatchingHeaders')}</Text>
|
|
164
|
+
</View>
|
|
165
|
+
)}
|
|
166
|
+
</View>
|
|
167
|
+
)}
|
|
193
168
|
</View>
|
|
194
169
|
);
|
|
195
170
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, {useCallback, useState, useMemo, useEffect, useRef} from 'react';
|
|
2
2
|
import {
|
|
3
3
|
FlatList,
|
|
4
|
+
Platform,
|
|
4
5
|
Pressable,
|
|
5
6
|
Text,
|
|
6
7
|
TextInput,
|
|
@@ -1116,7 +1117,6 @@ const AnalyticsTab = React.memo(() => {
|
|
|
1116
1117
|
<AnalyticsEventCard
|
|
1117
1118
|
event={item}
|
|
1118
1119
|
onPress={() => {
|
|
1119
|
-
animateNextLayout();
|
|
1120
1120
|
setSelectedEvent(item);
|
|
1121
1121
|
}}
|
|
1122
1122
|
isNew={newEventIds.has(item.id)}
|
|
@@ -1317,7 +1317,7 @@ const AnalyticsTab = React.memo(() => {
|
|
|
1317
1317
|
initialNumToRender={12}
|
|
1318
1318
|
maxToRenderPerBatch={8}
|
|
1319
1319
|
windowSize={5}
|
|
1320
|
-
removeClippedSubviews={
|
|
1320
|
+
removeClippedSubviews={Platform.OS === 'android'}
|
|
1321
1321
|
renderToHardwareTextureAndroid={true}
|
|
1322
1322
|
ListEmptyComponent={
|
|
1323
1323
|
<EmptyState
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, {useCallback, useMemo, useRef} from 'react';
|
|
2
2
|
import {
|
|
3
3
|
FlatList,
|
|
4
|
+
Platform,
|
|
4
5
|
Pressable,
|
|
5
6
|
ScrollView,
|
|
6
7
|
Text,
|
|
@@ -688,7 +689,7 @@ const ConsoleTab = React.memo(() => {
|
|
|
688
689
|
initialNumToRender={12}
|
|
689
690
|
maxToRenderPerBatch={8}
|
|
690
691
|
windowSize={5}
|
|
691
|
-
removeClippedSubviews={
|
|
692
|
+
removeClippedSubviews={Platform.OS === 'android'}
|
|
692
693
|
renderToHardwareTextureAndroid={true}
|
|
693
694
|
ListEmptyComponent={
|
|
694
695
|
<EmptyState
|
|
@@ -239,7 +239,9 @@ const CrashTab = React.memo(() => {
|
|
|
239
239
|
return (
|
|
240
240
|
<AnimatedEntrance index={index} distance={8}>
|
|
241
241
|
<TouchableScale
|
|
242
|
-
onPress={() =>
|
|
242
|
+
onPress={() => {
|
|
243
|
+
setSelectedCrash(item);
|
|
244
|
+
}}
|
|
243
245
|
style={[
|
|
244
246
|
localStyles.cardContainer,
|
|
245
247
|
isFatal && localStyles.fatalCardBorder,
|
|
@@ -607,7 +609,7 @@ const CrashTab = React.memo(() => {
|
|
|
607
609
|
initialNumToRender={12}
|
|
608
610
|
maxToRenderPerBatch={8}
|
|
609
611
|
windowSize={5}
|
|
610
|
-
removeClippedSubviews={
|
|
612
|
+
removeClippedSubviews={Platform.OS === 'android'}
|
|
611
613
|
renderToHardwareTextureAndroid={true}
|
|
612
614
|
contentContainerStyle={localStyles.listContent}
|
|
613
615
|
showsVerticalScrollIndicator={false}
|
|
@@ -1008,12 +1008,12 @@ const styles = StyleSheet.create({
|
|
|
1008
1008
|
gap: 3,
|
|
1009
1009
|
},
|
|
1010
1010
|
consoleLogLine: {
|
|
1011
|
-
fontFamily:
|
|
1011
|
+
fontFamily: AppFonts.interRegular,
|
|
1012
1012
|
fontSize: 10,
|
|
1013
1013
|
lineHeight: 14,
|
|
1014
1014
|
},
|
|
1015
1015
|
consoleLogPlaceholder: {
|
|
1016
|
-
fontFamily:
|
|
1016
|
+
fontFamily: AppFonts.interRegular,
|
|
1017
1017
|
fontSize: 10,
|
|
1018
1018
|
color: '#64748B',
|
|
1019
1019
|
fontStyle: 'italic',
|