react-native-inapp-inspector 2.3.15 → 2.3.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/README.md +1 -0
  2. package/android/src/main/java/com/inappinspector/NetworkInspectorModule.kt +438 -7
  3. package/bin/cli.js +0 -0
  4. package/dist/commonjs/capture.d.ts +26 -0
  5. package/dist/commonjs/capture.js +32 -0
  6. package/dist/commonjs/components/AnalyticsEventCard.js +11 -11
  7. package/dist/commonjs/components/AnimatedEntrance.js +6 -70
  8. package/dist/commonjs/components/DomainHeader.js +3 -48
  9. package/dist/commonjs/components/EmptyState.js +2 -2
  10. package/dist/commonjs/components/HeadersSection.js +14 -34
  11. package/dist/commonjs/components/Inspector/AnalyticsTab.js +1 -24
  12. package/dist/commonjs/components/Inspector/ConsoleTab.js +1 -23
  13. package/dist/commonjs/components/Inspector/CrashTab.js +4 -25
  14. package/dist/commonjs/components/Inspector/DebuggingTab.js +2 -2
  15. package/dist/commonjs/components/Inspector/FeedbackModal.d.ts +7 -0
  16. package/dist/commonjs/components/Inspector/FeedbackModal.js +552 -0
  17. package/dist/commonjs/components/Inspector/InspectorHeader.js +675 -285
  18. package/dist/commonjs/components/Inspector/MainScreen.js +66 -69
  19. package/dist/commonjs/components/Inspector/MediaGalleryTab.d.ts +2 -0
  20. package/dist/commonjs/components/Inspector/MediaGalleryTab.js +307 -0
  21. package/dist/commonjs/components/Inspector/MediaPreviewModal.d.ts +11 -0
  22. package/dist/commonjs/components/Inspector/MediaPreviewModal.js +393 -0
  23. package/dist/commonjs/components/Inspector/NetworkTab.js +196 -206
  24. package/dist/commonjs/components/Inspector/NpmStarPrompt.d.ts +3 -0
  25. package/dist/commonjs/components/Inspector/NpmStarPrompt.js +494 -0
  26. package/dist/commonjs/components/Inspector/NpmUpdateToast.js +4 -9
  27. package/dist/commonjs/components/Inspector/PerformanceTab.js +8 -1
  28. package/dist/commonjs/components/Inspector/ReduxTab.js +4 -24
  29. package/dist/commonjs/components/Inspector/SettingsPanel.js +1280 -173
  30. package/dist/commonjs/components/Inspector/SkeletonPlaceholder.js +2 -2
  31. package/dist/commonjs/components/Inspector/StorageTab.js +3 -26
  32. package/dist/commonjs/components/Inspector/TabBar.js +55 -25
  33. package/dist/commonjs/components/Inspector/UpdateAvailableModal.js +5 -10
  34. package/dist/commonjs/components/JsonViewer.js +43 -20
  35. package/dist/commonjs/components/LogCard.js +5 -5
  36. package/dist/commonjs/components/MetaAccordion.js +78 -80
  37. package/dist/commonjs/components/NetworkIcons.d.ts +13 -0
  38. package/dist/commonjs/components/NetworkIcons.js +83 -2
  39. package/dist/commonjs/components/SectionHeader.js +3 -48
  40. package/dist/commonjs/components/SkeletonPlaceholder.js +2 -2
  41. package/dist/commonjs/components/SourcePageCard.js +43 -45
  42. package/dist/commonjs/components/Toast.js +4 -4
  43. package/dist/commonjs/components/TouchableScale.js +9 -65
  44. package/dist/commonjs/components/TreeNode.js +2 -14
  45. package/dist/commonjs/constants/telemetryConfig.d.ts +3 -3
  46. package/dist/commonjs/constants/telemetryConfig.js +3 -3
  47. package/dist/commonjs/constants/version.d.ts +1 -1
  48. package/dist/commonjs/constants/version.js +1 -1
  49. package/dist/commonjs/customHooks/useAccordion.d.ts +3 -8
  50. package/dist/commonjs/customHooks/useAccordion.js +6 -36
  51. package/dist/commonjs/helpers/index.d.ts +3 -1
  52. package/dist/commonjs/helpers/index.js +11 -1
  53. package/dist/commonjs/helpers/remoteConfig.d.ts +4 -0
  54. package/dist/commonjs/helpers/remoteConfig.js +165 -0
  55. package/dist/commonjs/helpers/searchQueryParser.js +2 -0
  56. package/dist/commonjs/helpers/telemetry.d.ts +5 -0
  57. package/dist/commonjs/helpers/telemetry.js +339 -8
  58. package/dist/commonjs/i18n/locales/en.json +66 -2
  59. package/dist/commonjs/index.d.ts +2 -0
  60. package/dist/commonjs/index.js +70 -23
  61. package/dist/commonjs/native/NativeInspector.d.ts +60 -0
  62. package/dist/commonjs/native/NativeInspector.js +109 -2
  63. package/dist/commonjs/native/NativeNetworkInspector.d.ts +8 -0
  64. package/dist/commonjs/styles/AppColors.d.ts +36 -0
  65. package/dist/commonjs/styles/AppColors.js +36 -0
  66. package/dist/commonjs/styles/AppFonts.d.ts +2 -0
  67. package/dist/commonjs/styles/AppFonts.js +1 -0
  68. package/dist/commonjs/styles/index.d.ts +25 -1
  69. package/dist/commonjs/styles/index.js +22 -1
  70. package/dist/commonjs/types/enums.d.ts +2 -0
  71. package/dist/commonjs/types/enums.js +2 -0
  72. package/dist/commonjs/types/index.d.ts +2 -2
  73. package/dist/commonjs/types/interfaces.d.ts +12 -0
  74. package/dist/esm/capture.d.ts +26 -0
  75. package/dist/esm/capture.js +29 -0
  76. package/dist/esm/components/AnalyticsEventCard.js +11 -11
  77. package/dist/esm/components/AnimatedEntrance.js +4 -38
  78. package/dist/esm/components/DomainHeader.js +4 -16
  79. package/dist/esm/components/EmptyState.js +2 -2
  80. package/dist/esm/components/HeadersSection.js +16 -36
  81. package/dist/esm/components/Inspector/AnalyticsTab.js +3 -26
  82. package/dist/esm/components/Inspector/ConsoleTab.js +3 -25
  83. package/dist/esm/components/Inspector/CrashTab.js +6 -27
  84. package/dist/esm/components/Inspector/DebuggingTab.js +3 -3
  85. package/dist/esm/components/Inspector/FeedbackModal.d.ts +7 -0
  86. package/dist/esm/components/Inspector/FeedbackModal.js +515 -0
  87. package/dist/esm/components/Inspector/InspectorHeader.js +678 -288
  88. package/dist/esm/components/Inspector/MainScreen.js +67 -70
  89. package/dist/esm/components/Inspector/MediaGalleryTab.d.ts +2 -0
  90. package/dist/esm/components/Inspector/MediaGalleryTab.js +267 -0
  91. package/dist/esm/components/Inspector/MediaPreviewModal.d.ts +11 -0
  92. package/dist/esm/components/Inspector/MediaPreviewModal.js +353 -0
  93. package/dist/esm/components/Inspector/NetworkTab.js +199 -209
  94. package/dist/esm/components/Inspector/NpmStarPrompt.d.ts +3 -0
  95. package/dist/esm/components/Inspector/NpmStarPrompt.js +454 -0
  96. package/dist/esm/components/Inspector/NpmUpdateToast.js +5 -10
  97. package/dist/esm/components/Inspector/PerformanceTab.js +8 -1
  98. package/dist/esm/components/Inspector/ReduxTab.js +6 -26
  99. package/dist/esm/components/Inspector/SettingsPanel.js +1283 -176
  100. package/dist/esm/components/Inspector/SkeletonPlaceholder.js +2 -2
  101. package/dist/esm/components/Inspector/StorageTab.js +3 -26
  102. package/dist/esm/components/Inspector/TabBar.js +56 -26
  103. package/dist/esm/components/Inspector/UpdateAvailableModal.js +6 -11
  104. package/dist/esm/components/JsonViewer.js +43 -20
  105. package/dist/esm/components/LogCard.js +5 -5
  106. package/dist/esm/components/MetaAccordion.js +79 -81
  107. package/dist/esm/components/NetworkIcons.d.ts +13 -0
  108. package/dist/esm/components/NetworkIcons.js +68 -0
  109. package/dist/esm/components/SectionHeader.js +4 -16
  110. package/dist/esm/components/SkeletonPlaceholder.js +2 -2
  111. package/dist/esm/components/SourcePageCard.js +44 -46
  112. package/dist/esm/components/Toast.js +4 -4
  113. package/dist/esm/components/TouchableScale.js +7 -33
  114. package/dist/esm/components/TreeNode.js +4 -16
  115. package/dist/esm/constants/telemetryConfig.d.ts +3 -3
  116. package/dist/esm/constants/telemetryConfig.js +3 -3
  117. package/dist/esm/constants/version.d.ts +1 -1
  118. package/dist/esm/constants/version.js +1 -1
  119. package/dist/esm/customHooks/useAccordion.d.ts +3 -8
  120. package/dist/esm/customHooks/useAccordion.js +7 -37
  121. package/dist/esm/helpers/index.d.ts +3 -1
  122. package/dist/esm/helpers/index.js +9 -0
  123. package/dist/esm/helpers/remoteConfig.d.ts +4 -0
  124. package/dist/esm/helpers/remoteConfig.js +160 -0
  125. package/dist/esm/helpers/searchQueryParser.js +2 -0
  126. package/dist/esm/helpers/telemetry.d.ts +5 -0
  127. package/dist/esm/helpers/telemetry.js +332 -9
  128. package/dist/esm/i18n/locales/en.json +66 -2
  129. package/dist/esm/index.d.ts +2 -0
  130. package/dist/esm/index.js +66 -23
  131. package/dist/esm/native/NativeInspector.d.ts +60 -0
  132. package/dist/esm/native/NativeInspector.js +100 -1
  133. package/dist/esm/native/NativeNetworkInspector.d.ts +8 -0
  134. package/dist/esm/styles/AppColors.d.ts +36 -0
  135. package/dist/esm/styles/AppColors.js +36 -0
  136. package/dist/esm/styles/AppFonts.d.ts +2 -0
  137. package/dist/esm/styles/AppFonts.js +1 -0
  138. package/dist/esm/styles/index.d.ts +25 -1
  139. package/dist/esm/styles/index.js +22 -1
  140. package/dist/esm/types/enums.d.ts +2 -0
  141. package/dist/esm/types/enums.js +2 -0
  142. package/dist/esm/types/index.d.ts +2 -2
  143. package/dist/esm/types/interfaces.d.ts +12 -0
  144. package/ios/NetworkInspectorModule.h +1 -0
  145. package/ios/NetworkInspectorModule.mm +736 -7
  146. package/package.json +10 -2
  147. package/react-native-inapp-inspector.podspec +1 -0
  148. package/src/capture.ts +101 -0
  149. package/src/components/AnalyticsEventCard.tsx +15 -13
  150. package/src/components/AnimatedEntrance.tsx +3 -47
  151. package/src/components/DomainHeader.tsx +4 -17
  152. package/src/components/EmptyState.tsx +2 -2
  153. package/src/components/HeadersSection.tsx +31 -56
  154. package/src/components/Inspector/AnalyticsTab.tsx +2 -25
  155. package/src/components/Inspector/ConsoleTab.tsx +2 -24
  156. package/src/components/Inspector/CrashTab.tsx +4 -25
  157. package/src/components/Inspector/DebuggingTab.tsx +2 -2
  158. package/src/components/Inspector/FeedbackModal.tsx +626 -0
  159. package/src/components/Inspector/InspectorHeader.tsx +1230 -728
  160. package/src/components/Inspector/MainScreen.tsx +97 -82
  161. package/src/components/Inspector/MediaGalleryTab.tsx +355 -0
  162. package/src/components/Inspector/MediaPreviewModal.tsx +435 -0
  163. package/src/components/Inspector/NetworkTab.tsx +83 -93
  164. package/src/components/Inspector/NpmStarPrompt.tsx +532 -0
  165. package/src/components/Inspector/NpmUpdateToast.tsx +4 -9
  166. package/src/components/Inspector/PerformanceTab.tsx +8 -1
  167. package/src/components/Inspector/ReduxTab.tsx +5 -25
  168. package/src/components/Inspector/SettingsPanel.tsx +1493 -225
  169. package/src/components/Inspector/SkeletonPlaceholder.tsx +2 -2
  170. package/src/components/Inspector/StorageTab.tsx +3 -26
  171. package/src/components/Inspector/TabBar.tsx +63 -32
  172. package/src/components/Inspector/UpdateAvailableModal.tsx +6 -10
  173. package/src/components/JsonViewer.tsx +101 -60
  174. package/src/components/LogCard.tsx +10 -8
  175. package/src/components/MetaAccordion.tsx +6 -6
  176. package/src/components/NetworkIcons.tsx +242 -0
  177. package/src/components/SectionHeader.tsx +4 -16
  178. package/src/components/SkeletonPlaceholder.tsx +2 -2
  179. package/src/components/SourcePageCard.tsx +57 -55
  180. package/src/components/Toast.tsx +4 -4
  181. package/src/components/TouchableScale.tsx +8 -38
  182. package/src/components/TreeNode.tsx +5 -20
  183. package/src/constants/telemetryConfig.ts +3 -5
  184. package/src/constants/version.ts +1 -1
  185. package/src/customHooks/useAccordion.tsx +10 -43
  186. package/src/helpers/index.ts +11 -1
  187. package/src/helpers/remoteConfig.ts +212 -0
  188. package/src/helpers/searchQueryParser.ts +3 -0
  189. package/src/helpers/telemetry.ts +381 -10
  190. package/src/i18n/locales/en.json +69 -2
  191. package/src/index.tsx +93 -23
  192. package/src/native/NativeInspector.ts +186 -1
  193. package/src/native/NativeNetworkInspector.ts +9 -0
  194. package/src/styles/AppColors.ts +38 -0
  195. package/src/styles/AppFonts.ts +2 -0
  196. package/src/styles/index.ts +23 -2
  197. package/src/types/enums.ts +4 -0
  198. package/src/types/index.ts +2 -2
  199. package/src/types/interfaces.ts +12 -0
  200. package/android/.gradle/8.9/checksums/checksums.lock +0 -0
  201. package/android/.gradle/8.9/checksums/md5-checksums.bin +0 -0
  202. package/android/.gradle/8.9/checksums/sha1-checksums.bin +0 -0
  203. package/android/.gradle/8.9/dependencies-accessors/gc.properties +0 -0
  204. package/android/.gradle/8.9/executionHistory/executionHistory.lock +0 -0
  205. package/android/.gradle/8.9/fileChanges/last-build.bin +0 -0
  206. package/android/.gradle/8.9/fileHashes/fileHashes.lock +0 -0
  207. package/android/.gradle/8.9/gc.properties +0 -0
  208. package/android/.gradle/9.2.0/checksums/checksums.lock +0 -0
  209. package/android/.gradle/9.2.0/fileChanges/last-build.bin +0 -0
  210. package/android/.gradle/9.2.0/fileHashes/fileHashes.bin +0 -0
  211. package/android/.gradle/9.2.0/fileHashes/fileHashes.lock +0 -0
  212. package/android/.gradle/9.2.0/gc.properties +0 -0
  213. package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  214. package/android/.gradle/buildOutputCleanup/cache.properties +0 -2
  215. package/android/.gradle/vcs-1/gc.properties +0 -0
  216. package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/results.bin +0 -1
  217. package/android/build/.transforms/6683d6eeaa3e1dfa689c3385111a0386/transformed/classes/classes_dex/classes.dex +0 -0
  218. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/results.bin +0 -1
  219. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/BuildConfig.dex +0 -0
  220. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView$iconView$1.dex +0 -0
  221. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/InAppInspectorFloatingView.dex +0 -0
  222. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NativeNetworkInspectorSpec.dex +0 -0
  223. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$Companion.dex +0 -0
  224. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$frameCallback$1.dex +0 -0
  225. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule$shakeListener$1.dex +0 -0
  226. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorModule.dex +0 -0
  227. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/inappinspector/NetworkInspectorPackage.dex +0 -0
  228. package/android/build/.transforms/9d2a3e5e0f0ea07cafb0c0bf290630ee/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
  229. package/android/build/generated/source/buildConfig/debug/com/inappinspector/BuildConfig.java +0 -10
  230. package/android/build/generated/source/codegen/java/com/inappinspector/NativeNetworkInspectorSpec.java +0 -104
  231. package/android/build/generated/source/codegen/jni/CMakeLists.txt +0 -28
  232. package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec-generated.cpp +0 -128
  233. package/android/build/generated/source/codegen/jni/RNInAppInspectorSpec.h +0 -31
  234. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.cpp +0 -22
  235. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ComponentDescriptors.h +0 -24
  236. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.cpp +0 -16
  237. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/EventEmitters.h +0 -17
  238. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.cpp +0 -19
  239. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/Props.h +0 -18
  240. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/RNInAppInspectorSpecJSI.h +0 -177
  241. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.cpp +0 -17
  242. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/ShadowNodes.h +0 -23
  243. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.cpp +0 -16
  244. package/android/build/generated/source/codegen/jni/react/renderer/components/RNInAppInspectorSpec/States.h +0 -20
  245. package/android/build/generated/source/codegen/schema.json +0 -1
  246. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +0 -7
  247. package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +0 -18
  248. package/android/build/intermediates/aar_main_jar/debug/syncDebugLibJars/classes.jar +0 -0
  249. package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +0 -6
  250. package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +0 -1
  251. package/android/build/intermediates/annotations_typedef_file/debug/extractDebugAnnotations/typedefs.txt +0 -0
  252. package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
  253. package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
  254. package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
  255. package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +0 -1
  256. package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +0 -2
  257. package/android/build/intermediates/incremental/debug-mergeJavaRes/merge-state +0 -0
  258. package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +0 -2
  259. package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +0 -2
  260. package/android/build/intermediates/incremental/packageDebugAssets/merger.xml +0 -2
  261. package/android/build/intermediates/java_res/debug/processDebugJavaRes/out/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  262. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/BuildConfig.class +0 -0
  263. package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
  264. package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +0 -2
  265. package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +0 -7
  266. package/android/build/intermediates/merged_java_res/debug/mergeDebugJavaResource/feature-react-native-inapp-inspector.jar +0 -0
  267. package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +0 -7
  268. package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +0 -1
  269. package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +0 -1
  270. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  271. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/BuildConfig.class +0 -0
  272. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
  273. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
  274. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NativeNetworkInspectorSpec.class +0 -0
  275. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
  276. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
  277. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
  278. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorModule.class +0 -0
  279. package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/inappinspector/NetworkInspectorPackage.class +0 -0
  280. package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
  281. package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +0 -1
  282. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab +0 -0
  283. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream +0 -0
  284. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.keystream.len +0 -0
  285. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.len +0 -0
  286. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab.values.at +0 -0
  287. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i +0 -0
  288. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/inputs/source-to-output.tab_i.len +0 -0
  289. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab +0 -0
  290. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream +0 -0
  291. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.keystream.len +0 -0
  292. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.len +0 -0
  293. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab.values.at +0 -0
  294. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i +0 -0
  295. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-attributes.tab_i.len +0 -0
  296. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab +0 -0
  297. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream +0 -0
  298. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.keystream.len +0 -0
  299. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.len +0 -0
  300. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab.values.at +0 -0
  301. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i +0 -0
  302. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/class-fq-name-to-source.tab_i.len +0 -0
  303. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab +0 -0
  304. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream +0 -0
  305. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.keystream.len +0 -0
  306. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.len +0 -0
  307. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab.values.at +0 -0
  308. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i +0 -0
  309. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/constants.tab_i.len +0 -0
  310. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab +0 -0
  311. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream +0 -0
  312. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.keystream.len +0 -0
  313. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.len +0 -0
  314. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab.values.at +0 -0
  315. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i +0 -0
  316. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/internal-name-to-source.tab_i.len +0 -0
  317. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab +0 -0
  318. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream +0 -0
  319. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.keystream.len +0 -0
  320. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.len +0 -0
  321. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab.values.at +0 -0
  322. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i +0 -0
  323. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/proto.tab_i.len +0 -0
  324. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab +0 -0
  325. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream +0 -0
  326. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.keystream.len +0 -0
  327. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.len +0 -0
  328. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab.values.at +0 -0
  329. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i +0 -0
  330. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/source-to-classes.tab_i.len +0 -0
  331. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab +0 -0
  332. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream +0 -0
  333. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.keystream.len +0 -0
  334. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.len +0 -0
  335. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab.values.at +0 -0
  336. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i +0 -0
  337. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/subtypes.tab_i.len +0 -0
  338. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab +0 -0
  339. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream +0 -0
  340. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.keystream.len +0 -0
  341. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.len +0 -0
  342. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab.values.at +0 -0
  343. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i +0 -0
  344. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/jvm/kotlin/supertypes.tab_i.len +0 -0
  345. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/counters.tab +0 -2
  346. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab +0 -0
  347. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream +0 -0
  348. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.keystream.len +0 -0
  349. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.len +0 -0
  350. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab.values.at +0 -0
  351. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i +0 -0
  352. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/file-to-id.tab_i.len +0 -0
  353. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab +0 -0
  354. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream +0 -0
  355. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.keystream.len +0 -0
  356. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.len +0 -0
  357. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab.values.at +0 -0
  358. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i +0 -0
  359. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/id-to-file.tab_i.len +0 -0
  360. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab +0 -0
  361. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream +0 -0
  362. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.keystream.len +0 -0
  363. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.len +0 -0
  364. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab.values.at +0 -0
  365. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i +0 -0
  366. package/android/build/kotlin/compileDebugKotlin/cacheable/caches-jvm/lookups/lookups.tab_i.len +0 -0
  367. package/android/build/kotlin/compileDebugKotlin/cacheable/last-build.bin +0 -0
  368. package/android/build/kotlin/compileDebugKotlin/classpath-snapshot/shrunk-classpath-snapshot.bin +0 -0
  369. package/android/build/kotlin/compileDebugKotlin/local-state/build-history.bin +0 -0
  370. package/android/build/outputs/aar/react-native-inapp-inspector-debug.aar +0 -0
  371. package/android/build/outputs/logs/manifest-merger-debug-report.txt +0 -17
  372. package/android/build/reports/problems/problems-report.html +0 -659
  373. package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
  374. package/android/build/tmp/kotlin-classes/debug/META-INF/react-native-inapp-inspector_debug.kotlin_module +0 -0
  375. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView$iconView$1.class +0 -0
  376. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/InAppInspectorFloatingView.class +0 -0
  377. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$Companion.class +0 -0
  378. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$frameCallback$1.class +0 -0
  379. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule$shakeListener$1.class +0 -0
  380. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorModule.class +0 -0
  381. package/android/build/tmp/kotlin-classes/debug/com/inappinspector/NetworkInspectorPackage.class +0 -0
@@ -0,0 +1,626 @@
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;