@oxyhq/services 10.5.0 → 11.1.0

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 (427) hide show
  1. package/lib/commonjs/index.js.map +1 -1
  2. package/lib/commonjs/ui/components/AccountMenu.js +9 -5
  3. package/lib/commonjs/ui/components/AccountMenu.js.map +1 -1
  4. package/lib/commonjs/ui/components/AnotherDeviceQR.js +51 -56
  5. package/lib/commonjs/ui/components/AnotherDeviceQR.js.map +1 -1
  6. package/lib/commonjs/ui/components/BottomSheetRouter.js +1 -0
  7. package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
  8. package/lib/commonjs/ui/components/FollowButton.js +18 -5
  9. package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
  10. package/lib/commonjs/ui/components/OxyProvider.js +23 -7
  11. package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
  12. package/lib/commonjs/ui/components/SignInModal.js +20 -1
  13. package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
  14. package/lib/commonjs/ui/components/fileManagement/FileViewer.js +19 -9
  15. package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
  16. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +4 -2
  17. package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
  18. package/lib/commonjs/ui/context/OxyContext.js +153 -19
  19. package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
  20. package/lib/commonjs/ui/context/hooks/useAuthOperations.js +6 -17
  21. package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
  22. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +5 -5
  23. package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
  24. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +38 -38
  25. package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  26. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +2 -2
  27. package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  28. package/lib/commonjs/ui/hooks/queries/queryKeys.js +3 -3
  29. package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
  30. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +1 -1
  31. package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
  32. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +16 -12
  33. package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  34. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +10 -6
  35. package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
  36. package/lib/commonjs/ui/hooks/queryClient.js +6 -5
  37. package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
  38. package/lib/commonjs/ui/hooks/useOxyAuthSession.js +40 -2
  39. package/lib/commonjs/ui/hooks/useOxyAuthSession.js.map +1 -1
  40. package/lib/commonjs/ui/hooks/useProfileEditing.js +21 -0
  41. package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
  42. package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
  43. package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
  44. package/lib/commonjs/ui/screens/AccountVerificationScreen.js +100 -108
  45. package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
  46. package/lib/commonjs/ui/screens/AppInfoScreen.js +227 -273
  47. package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
  48. package/lib/commonjs/ui/screens/AvatarCropScreen.js +10 -4
  49. package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
  50. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +20 -37
  51. package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
  52. package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +89 -201
  53. package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
  54. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +80 -208
  55. package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
  56. package/lib/commonjs/ui/screens/FAQScreen.js +56 -208
  57. package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
  58. package/lib/commonjs/ui/screens/FeedbackScreen.js +303 -352
  59. package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
  60. package/lib/commonjs/ui/screens/FileManagementScreen.js +20 -20
  61. package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
  62. package/lib/commonjs/ui/screens/HelpSupportScreen.js +77 -89
  63. package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
  64. package/lib/commonjs/ui/screens/HistoryViewScreen.js +43 -58
  65. package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
  66. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +67 -90
  67. package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
  68. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +77 -177
  69. package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  70. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +113 -107
  71. package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
  72. package/lib/commonjs/ui/screens/ManageAccountScreen.js +55 -114
  73. package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
  74. package/lib/commonjs/ui/screens/NotificationsScreen.js +67 -85
  75. package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
  76. package/lib/commonjs/ui/screens/OxyAuthScreen.js +71 -135
  77. package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
  78. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +15 -9
  79. package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
  80. package/lib/commonjs/ui/screens/PreferencesScreen.js +65 -83
  81. package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
  82. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +378 -1023
  83. package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  84. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +294 -242
  85. package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
  86. package/lib/commonjs/ui/screens/ProfileScreen.js +192 -305
  87. package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
  88. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +57 -97
  89. package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
  90. package/lib/commonjs/ui/screens/SearchSettingsScreen.js +41 -41
  91. package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
  92. package/lib/commonjs/ui/screens/UserLinksScreen.js +17 -24
  93. package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
  94. package/lib/commonjs/ui/screens/UserListScreen.js +83 -214
  95. package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
  96. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +115 -77
  97. package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  98. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +70 -57
  99. package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  100. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +136 -332
  101. package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  102. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +47 -137
  103. package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  104. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +182 -115
  105. package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  106. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +138 -214
  107. package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  108. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +54 -92
  109. package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  110. package/lib/commonjs/ui/utils/activeAuthuser.js +15 -9
  111. package/lib/commonjs/ui/utils/activeAuthuser.js.map +1 -1
  112. package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
  113. package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
  114. package/lib/module/index.js.map +1 -1
  115. package/lib/module/ui/components/AccountMenu.js +10 -6
  116. package/lib/module/ui/components/AccountMenu.js.map +1 -1
  117. package/lib/module/ui/components/AnotherDeviceQR.js +50 -56
  118. package/lib/module/ui/components/AnotherDeviceQR.js.map +1 -1
  119. package/lib/module/ui/components/BottomSheetRouter.js +2 -1
  120. package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
  121. package/lib/module/ui/components/FollowButton.js +18 -5
  122. package/lib/module/ui/components/FollowButton.js.map +1 -1
  123. package/lib/module/ui/components/OxyProvider.js +23 -7
  124. package/lib/module/ui/components/OxyProvider.js.map +1 -1
  125. package/lib/module/ui/components/SignInModal.js +20 -1
  126. package/lib/module/ui/components/SignInModal.js.map +1 -1
  127. package/lib/module/ui/components/fileManagement/FileViewer.js +19 -9
  128. package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
  129. package/lib/module/ui/components/fileManagement/UploadPreview.js +4 -2
  130. package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
  131. package/lib/module/ui/context/OxyContext.js +154 -20
  132. package/lib/module/ui/context/OxyContext.js.map +1 -1
  133. package/lib/module/ui/context/hooks/useAuthOperations.js +6 -17
  134. package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
  135. package/lib/module/ui/hooks/mutations/mutationFactory.js +5 -5
  136. package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
  137. package/lib/module/ui/hooks/mutations/useAccountMutations.js +38 -38
  138. package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
  139. package/lib/module/ui/hooks/mutations/useServicesMutations.js +2 -2
  140. package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
  141. package/lib/module/ui/hooks/queries/queryKeys.js +3 -3
  142. package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
  143. package/lib/module/ui/hooks/queries/useAccountQueries.js +1 -1
  144. package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
  145. package/lib/module/ui/hooks/queries/usePaymentQueries.js +16 -12
  146. package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
  147. package/lib/module/ui/hooks/queries/useServicesQueries.js +9 -6
  148. package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
  149. package/lib/module/ui/hooks/queryClient.js +6 -5
  150. package/lib/module/ui/hooks/queryClient.js.map +1 -1
  151. package/lib/module/ui/hooks/useOxyAuthSession.js +40 -2
  152. package/lib/module/ui/hooks/useOxyAuthSession.js.map +1 -1
  153. package/lib/module/ui/hooks/useProfileEditing.js +21 -0
  154. package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
  155. package/lib/module/ui/hooks/useSessionManagement.js +4 -3
  156. package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
  157. package/lib/module/ui/screens/AccountVerificationScreen.js +101 -109
  158. package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
  159. package/lib/module/ui/screens/AppInfoScreen.js +228 -275
  160. package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
  161. package/lib/module/ui/screens/AvatarCropScreen.js +10 -4
  162. package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
  163. package/lib/module/ui/screens/ConnectedAppsScreen.js +19 -39
  164. package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
  165. package/lib/module/ui/screens/CreateManagedAccountScreen.js +90 -202
  166. package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
  167. package/lib/module/ui/screens/EditProfileFieldScreen.js +77 -205
  168. package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
  169. package/lib/module/ui/screens/FAQScreen.js +55 -207
  170. package/lib/module/ui/screens/FAQScreen.js.map +1 -1
  171. package/lib/module/ui/screens/FeedbackScreen.js +301 -350
  172. package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
  173. package/lib/module/ui/screens/FileManagementScreen.js +20 -20
  174. package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
  175. package/lib/module/ui/screens/HelpSupportScreen.js +78 -90
  176. package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
  177. package/lib/module/ui/screens/HistoryViewScreen.js +44 -59
  178. package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
  179. package/lib/module/ui/screens/LanguageSelectorScreen.js +68 -91
  180. package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
  181. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +75 -177
  182. package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
  183. package/lib/module/ui/screens/LegalDocumentsScreen.js +116 -108
  184. package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
  185. package/lib/module/ui/screens/ManageAccountScreen.js +52 -112
  186. package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
  187. package/lib/module/ui/screens/NotificationsScreen.js +68 -86
  188. package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
  189. package/lib/module/ui/screens/OxyAuthScreen.js +69 -134
  190. package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
  191. package/lib/module/ui/screens/PaymentGatewayScreen.js +16 -10
  192. package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
  193. package/lib/module/ui/screens/PreferencesScreen.js +66 -84
  194. package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
  195. package/lib/module/ui/screens/PremiumSubscriptionScreen.js +366 -1012
  196. package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
  197. package/lib/module/ui/screens/PrivacySettingsScreen.js +295 -243
  198. package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
  199. package/lib/module/ui/screens/ProfileScreen.js +189 -302
  200. package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
  201. package/lib/module/ui/screens/SavesCollectionsScreen.js +58 -98
  202. package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
  203. package/lib/module/ui/screens/SearchSettingsScreen.js +42 -42
  204. package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
  205. package/lib/module/ui/screens/UserLinksScreen.js +18 -25
  206. package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
  207. package/lib/module/ui/screens/UserListScreen.js +81 -212
  208. package/lib/module/ui/screens/UserListScreen.js.map +1 -1
  209. package/lib/module/ui/screens/WelcomeNewUserScreen.js +114 -76
  210. package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
  211. package/lib/module/ui/screens/trust/TrustAboutScreen.js +69 -57
  212. package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
  213. package/lib/module/ui/screens/trust/TrustCenterScreen.js +135 -332
  214. package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
  215. package/lib/module/ui/screens/trust/TrustFAQScreen.js +48 -138
  216. package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
  217. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +184 -117
  218. package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
  219. package/lib/module/ui/screens/trust/TrustRewardsScreen.js +132 -208
  220. package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
  221. package/lib/module/ui/screens/trust/TrustRulesScreen.js +58 -94
  222. package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
  223. package/lib/module/ui/utils/activeAuthuser.js +15 -9
  224. package/lib/module/ui/utils/activeAuthuser.js.map +1 -1
  225. package/lib/module/ui/utils/avatarUtils.js +1 -1
  226. package/lib/module/ui/utils/avatarUtils.js.map +1 -1
  227. package/lib/typescript/commonjs/index.d.ts +1 -0
  228. package/lib/typescript/commonjs/index.d.ts.map +1 -1
  229. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +2 -0
  230. package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +1 -1
  231. package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts +12 -2
  232. package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts.map +1 -1
  233. package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +1 -1
  234. package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
  235. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +3 -2
  236. package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
  237. package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
  238. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
  239. package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
  240. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +34 -0
  241. package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
  242. package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  243. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +3 -0
  244. package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  245. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +3 -3
  246. package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  247. package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  248. package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
  249. package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts +22 -0
  250. package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
  251. package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts +3 -0
  252. package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -1
  253. package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +2 -1
  254. package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
  255. package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  256. package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
  257. package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  258. package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  259. package/lib/typescript/commonjs/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
  260. package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  261. package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
  262. package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
  263. package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  264. package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  265. package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  266. package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  267. package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  268. package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  269. package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
  270. package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +1 -1
  271. package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  272. package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
  273. package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  274. package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  275. package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
  276. package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  277. package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  278. package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
  279. package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
  280. package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  281. package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  282. package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  283. package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  284. package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  285. package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  286. package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  287. package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts.map +1 -1
  288. package/lib/typescript/module/index.d.ts +1 -0
  289. package/lib/typescript/module/index.d.ts.map +1 -1
  290. package/lib/typescript/module/ui/components/AccountMenu.d.ts +2 -0
  291. package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +1 -1
  292. package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts +12 -2
  293. package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts.map +1 -1
  294. package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +1 -1
  295. package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
  296. package/lib/typescript/module/ui/components/OxyProvider.d.ts +3 -2
  297. package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
  298. package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
  299. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
  300. package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
  301. package/lib/typescript/module/ui/context/OxyContext.d.ts +34 -0
  302. package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
  303. package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
  304. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +3 -0
  305. package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
  306. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +3 -3
  307. package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
  308. package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
  309. package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
  310. package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts +22 -0
  311. package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
  312. package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts +3 -0
  313. package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -1
  314. package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +2 -1
  315. package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
  316. package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
  317. package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
  318. package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
  319. package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
  320. package/lib/typescript/module/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
  321. package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
  322. package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
  323. package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
  324. package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
  325. package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
  326. package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
  327. package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
  328. package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
  329. package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
  330. package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
  331. package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +1 -1
  332. package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
  333. package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
  334. package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
  335. package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
  336. package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
  337. package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
  338. package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
  339. package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
  340. package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
  341. package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
  342. package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
  343. package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
  344. package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
  345. package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
  346. package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
  347. package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
  348. package/lib/typescript/module/ui/utils/activeAuthuser.d.ts.map +1 -1
  349. package/lib/typescript/types/expo-haptics.d.ts +42 -0
  350. package/package.json +24 -31
  351. package/src/index.ts +1 -0
  352. package/src/types/expo-haptics.d.ts +42 -0
  353. package/src/ui/components/AccountMenu.tsx +11 -5
  354. package/src/ui/components/AnotherDeviceQR.tsx +53 -45
  355. package/src/ui/components/BottomSheetRouter.tsx +2 -1
  356. package/src/ui/components/FollowButton.tsx +24 -5
  357. package/src/ui/components/OxyProvider.tsx +22 -8
  358. package/src/ui/components/SignInModal.tsx +21 -2
  359. package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +1 -1
  360. package/src/ui/components/fileManagement/FileViewer.tsx +9 -9
  361. package/src/ui/components/fileManagement/UploadPreview.tsx +2 -2
  362. package/src/ui/context/OxyContext.tsx +178 -21
  363. package/src/ui/context/hooks/useAuthOperations.ts +6 -17
  364. package/src/ui/hooks/mutations/mutationFactory.ts +5 -5
  365. package/src/ui/hooks/mutations/useAccountMutations.ts +38 -38
  366. package/src/ui/hooks/mutations/useServicesMutations.ts +2 -2
  367. package/src/ui/hooks/queries/queryKeys.ts +6 -3
  368. package/src/ui/hooks/queries/useAccountQueries.ts +1 -1
  369. package/src/ui/hooks/queries/usePaymentQueries.ts +12 -12
  370. package/src/ui/hooks/queries/useServicesQueries.ts +9 -6
  371. package/src/ui/hooks/queryClient.ts +5 -5
  372. package/src/ui/hooks/useOxyAuthSession.ts +76 -2
  373. package/src/ui/hooks/useProfileEditing.ts +24 -0
  374. package/src/ui/hooks/useSessionManagement.ts +9 -6
  375. package/src/ui/screens/AccountVerificationScreen.tsx +101 -113
  376. package/src/ui/screens/AppInfoScreen.tsx +200 -238
  377. package/src/ui/screens/AvatarCropScreen.tsx +17 -4
  378. package/src/ui/screens/ConnectedAppsScreen.tsx +16 -34
  379. package/src/ui/screens/CreateManagedAccountScreen.tsx +94 -170
  380. package/src/ui/screens/EditProfileFieldScreen.tsx +77 -190
  381. package/src/ui/screens/FAQScreen.tsx +77 -208
  382. package/src/ui/screens/FeedbackScreen.tsx +330 -239
  383. package/src/ui/screens/FileManagementScreen.tsx +20 -20
  384. package/src/ui/screens/HelpSupportScreen.tsx +67 -82
  385. package/src/ui/screens/HistoryViewScreen.tsx +32 -38
  386. package/src/ui/screens/LanguageSelectorScreen.tsx +79 -93
  387. package/src/ui/screens/LearnMoreUsernamesScreen.tsx +81 -164
  388. package/src/ui/screens/LegalDocumentsScreen.tsx +184 -123
  389. package/src/ui/screens/ManageAccountScreen.tsx +48 -114
  390. package/src/ui/screens/NotificationsScreen.tsx +107 -106
  391. package/src/ui/screens/OxyAuthScreen.tsx +76 -109
  392. package/src/ui/screens/PaymentGatewayScreen.tsx +16 -7
  393. package/src/ui/screens/PreferencesScreen.tsx +96 -116
  394. package/src/ui/screens/PremiumSubscriptionScreen.tsx +419 -872
  395. package/src/ui/screens/PrivacySettingsScreen.tsx +203 -185
  396. package/src/ui/screens/ProfileScreen.tsx +158 -200
  397. package/src/ui/screens/SavesCollectionsScreen.tsx +78 -125
  398. package/src/ui/screens/SearchSettingsScreen.tsx +52 -41
  399. package/src/ui/screens/UserLinksScreen.tsx +18 -25
  400. package/src/ui/screens/UserListScreen.tsx +95 -188
  401. package/src/ui/screens/WelcomeNewUserScreen.tsx +109 -36
  402. package/src/ui/screens/trust/TrustAboutScreen.tsx +52 -41
  403. package/src/ui/screens/trust/TrustCenterScreen.tsx +184 -222
  404. package/src/ui/screens/trust/TrustFAQScreen.tsx +64 -124
  405. package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +190 -67
  406. package/src/ui/screens/trust/TrustRewardsScreen.tsx +147 -182
  407. package/src/ui/screens/trust/TrustRulesScreen.tsx +77 -50
  408. package/src/ui/utils/activeAuthuser.ts +15 -9
  409. package/src/ui/utils/avatarUtils.ts +1 -1
  410. package/lib/commonjs/ui/components/feedback/FormInput.js +0 -72
  411. package/lib/commonjs/ui/components/feedback/FormInput.js.map +0 -1
  412. package/lib/commonjs/ui/components/feedback/feedbackStyles.js +0 -261
  413. package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +0 -1
  414. package/lib/module/ui/components/feedback/FormInput.js +0 -67
  415. package/lib/module/ui/components/feedback/FormInput.js.map +0 -1
  416. package/lib/module/ui/components/feedback/feedbackStyles.js +0 -256
  417. package/lib/module/ui/components/feedback/feedbackStyles.js.map +0 -1
  418. package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts +0 -20
  419. package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts.map +0 -1
  420. package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts +0 -279
  421. package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
  422. package/lib/typescript/module/ui/components/feedback/FormInput.d.ts +0 -20
  423. package/lib/typescript/module/ui/components/feedback/FormInput.d.ts.map +0 -1
  424. package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts +0 -279
  425. package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
  426. package/src/ui/components/feedback/FormInput.tsx +0 -84
  427. package/src/ui/components/feedback/feedbackStyles.ts +0 -246
@@ -1 +1 @@
1
- {"version":3,"names":["useEffect","useState","View","Text","StyleSheet","ScrollView","ActivityIndicator","TouchableOpacity","Avatar","Header","useI18n","useTheme","useOxy","getTrustTierLabel","jsx","_jsx","jsxs","_jsxs","TrustLeaderboardScreen","goBack","theme","navigate","oxyServices","t","leaderboard","setLeaderboard","isLoading","setIsLoading","error","setError","bloomTheme","primaryColor","getReputationLeaderboard","then","data","Array","isArray","catch","err","Error","message","finally","style","styles","container","backgroundColor","colors","background","children","title","subtitle","onBack","elevation","size","color","marginTop","contentContainerStyle","listContainer","length","placeholder","text","map","entry","username","user","displayName","id","row","borderColor","border","rank","primarySubtle","onPress","userId","activeOpacity","name","avatar","userColumn","numberOfLines","tier","textTertiary","trustTier","reputation","total","create","flex","paddingBottom","paddingTop","flexDirection","alignItems","paddingVertical","paddingHorizontal","borderBottomWidth","fontSize","width","textAlign","fontWeight","marginHorizontal","marginLeft"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustLeaderboardScreen.tsx"],"mappings":";;AACA,SAASA,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,IAAI,EAAEC,IAAI,EAAEC,UAAU,EAAEC,UAAU,EAAEC,iBAAiB,EAAEC,gBAAgB,QAAQ,cAAc;AAGtG,OAAOC,MAAM,MAAM,4BAAyB;AAC5C,OAAOC,MAAM,MAAM,4BAAyB;AAC5C,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,iBAAiB,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,sBAAiD,GAAGA,CAAC;EAAEC,MAAM;EAAEC,KAAK;EAAEC;AAAS,CAAC,KAAK;EACvF;EACA,MAAM;IAAEC;EAAY,CAAC,GAAGV,MAAM,CAAC,CAAC;EAChC,MAAM;IAAEW;EAAE,CAAC,GAAGb,OAAO,CAAC,CAAC;EACvB,MAAM,CAACc,WAAW,EAAEC,cAAc,CAAC,GAAGxB,QAAQ,CAA+B,EAAE,CAAC;EAChF,MAAM,CAACyB,SAAS,EAAEC,YAAY,CAAC,GAAG1B,QAAQ,CAAC,IAAI,CAAC;EAChD,MAAM,CAAC2B,KAAK,EAAEC,QAAQ,CAAC,GAAG5B,QAAQ,CAAgB,IAAI,CAAC;EAEvD,MAAM6B,UAAU,GAAGnB,QAAQ,CAAC,CAAC;EAC7B;EACA,MAAMoB,YAAY,GAAG,SAAS;EAE9B/B,SAAS,CAAC,MAAM;IACZ2B,YAAY,CAAC,IAA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AAE,EAAE;IAAEC,SAAS,EAAE,QAAQ;IAAEC,UAAU,EAAE;EAAO,CAAC;EAC1EpB,MAAM,EAAE;IAAEqB,gBAAgB,EAAE;EAAE,CAAC;EAC/BpB,UAAU,EAAE;IAAEQ,IAAI,EAAE,CAAC;IAAEa,UAAU,EAAE;EAAE,CAAC;EACtCnC,QAAQ,EAAE;IAAE8B,QAAQ,EAAE;EAAG,CAAC;EAC1Bd,IAAI,EAAE;IAAEc,QAAQ,EAAE,EAAE;IAAEtC,SAAS,EAAE;EAAE,CAAC;EACpC2B,UAAU,EAAE;IAAEW,QAAQ,EAAE,EAAE;IAAEG,UAAU,EAAE,MAAM;IAAEE,UAAU,EAAE;EAAG,CAAC;EAChEvC,WAAW,EAAE;IAAEkC,QAAQ,EAAE,EAAE;IAAEE,SAAS,EAAE,QAAQ;IAAExC,SAAS,EAAE;EAAG,CAAC;EACjE3B,KAAK,EAAE;IAAEiE,QAAQ,EAAE,EAAE;IAAEE,SAAS,EAAE,QAAQ;IAAExC,SAAS,EAAE;EAAG;AAC9D,CAAC,CAAC;AAEF,eAAerC,sBAAsB","ignoreList":[]}
1
+ {"version":3,"names":["useCallback","useEffect","useMemo","useState","View","StyleSheet","ActivityIndicator","FlatList","TouchableOpacity","getAccountDisplayName","logger","useTheme","H6","Text","Chip","Button","Ionicons","Avatar","Header","useI18n","useOxy","getTrustTierLabel","jsx","_jsx","jsxs","_jsxs","AVATAR_SIZE","EMPTY_ICON_SIZE","ERROR_ICON_SIZE","PODIUM_RANK","TrustLeaderboardScreen","goBack","navigate","oxyServices","user","currentUser","t","locale","bloomTheme","leaderboard","setLeaderboard","isLoading","setIsLoading","error","setError","currentUserId","id","loadLeaderboard","getReputationLeaderboard","then","data","Array","isArray","catch","err","Error","String","component","message","finally","title","subtitle","handleEntryPress","entry","userId","username","renderEntry","item","displayName","isViewer","isPodium","rank","highlightClass","style","styles","row","className","onPress","activeOpacity","accessibilityRole","accessibilityLabel","children","numberOfLines","uri","avatar","getFileDownloadUrl","undefined","name","size","userColumn","tierRow","variant","color","trustTier","total","keyExtractor","index","ItemSeparator","separator","onBack","elevation","center","colors","primary","renderItem","contentContainerStyle","listContent","ItemSeparatorComponent","ListEmptyComponent","emptyContainer","textSecondary","create","flex","justifyContent","alignItems","flexGrow","paddingBottom","flexDirection","width","marginLeft","paddingTop"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustLeaderboardScreen.tsx"],"mappings":";;AACA,SAASA,WAAW,EAAEC,SAAS,EAAEC,OAAO,EAAEC,QAAQ,QAAQ,OAAO;AACjE,SACIC,IAAI,EACJC,UAAU,EACVC,iBAAiB,EACjBC,QAAQ,EACRC,gBAAgB,QACb,cAAc;AAErB,SAASC,qBAAqB,EAAEC,MAAM,QAAQ,aAAa;AAC3D,SAASC,QAAQ,QAAQ,oBAAoB;AAC7C,SAASC,EAAE,EAAEC,IAAI,QAAQ,yBAAyB;AAClD,SAASC,IAAI,QAAQ,mBAAmB;AACxC,SAASC,MAAM,QAAQ,qBAAqB;AAC5C,SAASC,QAAQ,QAAQ,oBAAoB;AAE7C,OAAOC,MAAM,MAAM,4BAAyB;AAC5C,OAAOC,MAAM,MAAM,4BAAyB;AAC5C,SAASC,OAAO,QAAQ,wBAAqB;AAC7C,SAASC,MAAM,QAAQ,6BAA0B;AACjD,SAASC,iBAAiB,QAAQ,gBAAa;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAEhD,MAAMC,WAAW,GAAG,EAAE;AACtB,MAAMC,eAAe,GAAG,EAAE;AAC1B,MAAMC,eAAe,GAAG,EAAE;AAC1B;AACA,MAAMC,WAAW,GAAG,CAAC;AAErB,MAAMC,sBAAiD,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAAS,CAAC,KAAK;EAChF,MAAM;IAAEC,WAAW;IAAEC,IAAI,EAAEC;EAAY,CAAC,GAAGf,MAAM,CAAC,CAAC;EACnD,MAAM;IAAEgB,CAAC;IAAEC;EAAO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ACpD7C,CAAC,CAAC,6BAA6B,CAAC,IAAI;QAA2D,CAC9F,CAAC;MAAA,CACL;IACT,CACJ,CAAC;EAAA,CACA,CAAC;AAEf,CAAC;;AAED;AACA;AACA;AACA,MAAMsC,MAAM,GAAGrE,UAAU,CAAC0G,MAAM,CAAC;EAC7BV,MAAM,EAAE;IACJW,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EAChB,CAAC;EACDR,WAAW,EAAE;IACTS,QAAQ,EAAE,CAAC;IACXC,aAAa,EAAE;EACnB,CAAC;EACDzC,GAAG,EAAE;IACD0C,aAAa,EAAE,KAAK;IACpBH,UAAU,EAAE;EAChB,CAAC;EACD3C,IAAI,EAAE;IACF+C,KAAK,EAAE;EACX,CAAC;EACD7B,UAAU,EAAE;IACRuB,IAAI,EAAE;EACV,CAAC;EACDtB,OAAO,EAAE;IACL2B,aAAa,EAAE,KAAK;IACpBH,UAAU,EAAE;EAChB,CAAC;EACD;EACA;EACAhB,SAAS,EAAE;IACPqB,UAAU,EAAE;EAChB,CAAC;EACDV,cAAc,EAAE;IACZG,IAAI,EAAE,CAAC;IACPC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBM,UAAU,EAAE;EAChB;AACJ,CAAC,CAAC;AAEF,eAAe1F,sBAAsB","ignoreList":[]}
@@ -1,20 +1,65 @@
1
1
  "use strict";
2
2
 
3
3
  import { useMemo, useState, useEffect } from 'react';
4
- import { View, Text, StyleSheet, ScrollView, Platform } from 'react-native';
4
+ import { View, StyleSheet, ScrollView } from 'react-native';
5
5
  import Header from "../../components/Header.js";
6
6
  import { Ionicons } from '@expo/vector-icons';
7
- import { useI18n } from "../../hooks/useI18n.js";
8
7
  import { useTheme } from '@oxyhq/bloom/theme';
9
- import { normalizeColorScheme } from '@oxyhq/core';
10
- import { useColorScheme } from "../../hooks/useColorScheme.js";
11
- import { Colors } from "../../constants/theme.js";
8
+ import { H1, H4, H5, Text } from '@oxyhq/bloom/typography';
9
+ import { useI18n } from "../../hooks/useI18n.js";
12
10
  import { useOxy } from "../../context/OxyContext.js";
13
11
  import { darkenColor, lightenColor } from "../../utils/colorUtils.js";
14
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
13
+ /**
14
+ * Per-achievement identity tints. Like the trust-tier palette in `trustTier.ts`,
15
+ * these are data, not theme surfaces — they brand each badge regardless of theme.
16
+ */
17
+ const ACHIEVEMENT_TINT = {
18
+ gray: '#8E8E93',
19
+ green: '#34C759',
20
+ blue: '#007AFF',
21
+ orange: '#FF9500',
22
+ purple: '#AF52DE',
23
+ pink: '#FF2D55',
24
+ gold: '#FFD700',
25
+ red: '#FF3B30',
26
+ indigo: '#5E5CE6'
27
+ };
28
+
29
+ /** Rarity-tier identity tints for the corner rarity accent. */
30
+ const RARITY_TINT = {
31
+ legendary: ACHIEVEMENT_TINT.gold,
32
+ epic: ACHIEVEMENT_TINT.purple,
33
+ rare: ACHIEVEMENT_TINT.blue,
34
+ common: ''
35
+ };
36
+
37
+ /** Contrast-locked foreground for icons/value text painted over a colored badge fill. */
38
+ const BADGE_ON_COLOR = '#FFFFFF';
39
+
40
+ /** Reputation thresholds that unlock each milestone, and the value shown on its badge. */
41
+ const ACHIEVEMENT_VALUE = {
42
+ 'first-step': 1,
43
+ novice: 10,
44
+ contributor: 50,
45
+ 'rising-star': 100,
46
+ 'early-adopter': 200,
47
+ 'community-hero': 500,
48
+ legend: 1000,
49
+ phoenix: 2500,
50
+ unstoppable: 5000,
51
+ helper: 10,
52
+ 'streak-master': 7
53
+ };
54
+ const BADGE_BORDER_WIDTH = 5;
55
+ const BADGE_GLOW_OPACITY = 0.3;
56
+ const BADGE_DARKEN = 0.45;
57
+ const BADGE_LIGHTEN = 0.25;
58
+ const RARITY_DARKEN = 0.4;
59
+ const ACCENT_LIGHTEN = 0.1;
60
+ const LOCKED_OPACITY = 0.5;
15
61
  const TrustRewardsScreen = ({
16
- goBack,
17
- theme
62
+ goBack
18
63
  }) => {
19
64
  const {
20
65
  t
@@ -25,14 +70,9 @@ const TrustRewardsScreen = ({
25
70
  isAuthenticated
26
71
  } = useOxy();
27
72
  const [reputationTotal, setReputationTotal] = useState(0);
28
- const [isLoading, setIsLoading] = useState(true);
73
+ const [, setIsLoading] = useState(true);
29
74
  const bloomTheme = useTheme();
30
- const colorScheme = useColorScheme();
31
- const normalizedColorScheme = normalizeColorScheme(colorScheme);
32
- const colors = Colors[normalizedColorScheme];
33
- const themeStyles = useMemo(() => ({
34
- primaryColor: '#d169e5'
35
- }), []);
75
+ const colors = bloomTheme.colors;
36
76
  useEffect(() => {
37
77
  if (!user || !isAuthenticated) {
38
78
  setIsLoading(false);
@@ -51,7 +91,7 @@ const TrustRewardsScreen = ({
51
91
  description: t('trust.achievements.firstStepDesc') || 'Earned your first reputation point',
52
92
  category: 'milestone',
53
93
  icon: 'footsteps',
54
- iconColor: '#8E8E93',
94
+ iconColor: ACHIEVEMENT_TINT.gray,
55
95
  unlocked: reputationTotal >= 1,
56
96
  rarity: 'common'
57
97
  }, {
@@ -60,7 +100,7 @@ const TrustRewardsScreen = ({
60
100
  description: t('trust.achievements.noviceDesc') || 'Reached 10 reputation points',
61
101
  category: 'milestone',
62
102
  icon: 'leaf',
63
- iconColor: '#34C759',
103
+ iconColor: ACHIEVEMENT_TINT.green,
64
104
  unlocked: reputationTotal >= 10,
65
105
  rarity: 'common'
66
106
  }, {
@@ -68,8 +108,8 @@ const TrustRewardsScreen = ({
68
108
  name: t('trust.achievements.contributor') || 'Contributor',
69
109
  description: t('trust.achievements.contributorDesc') || 'Reached 50 reputation points',
70
110
  category: 'contribution',
71
- icon: 'account-group',
72
- iconColor: '#007AFF',
111
+ icon: 'people',
112
+ iconColor: ACHIEVEMENT_TINT.blue,
73
113
  unlocked: reputationTotal >= 50,
74
114
  rarity: 'common'
75
115
  }, {
@@ -78,7 +118,7 @@ const TrustRewardsScreen = ({
78
118
  description: t('trust.achievements.risingStarDesc') || 'Reached 100 reputation points',
79
119
  category: 'milestone',
80
120
  icon: 'star',
81
- iconColor: '#FF9500',
121
+ iconColor: ACHIEVEMENT_TINT.orange,
82
122
  unlocked: reputationTotal >= 100,
83
123
  rarity: 'rare'
84
124
  }, {
@@ -87,7 +127,7 @@ const TrustRewardsScreen = ({
87
127
  description: t('trust.achievements.earlyAdopterDesc') || 'Been part of the community from the start',
88
128
  category: 'special',
89
129
  icon: 'rocket',
90
- iconColor: '#AF52DE',
130
+ iconColor: ACHIEVEMENT_TINT.purple,
91
131
  unlocked: reputationTotal >= 200,
92
132
  rarity: 'rare'
93
133
  }, {
@@ -96,7 +136,7 @@ const TrustRewardsScreen = ({
96
136
  description: t('trust.achievements.communityHeroDesc') || 'Reached 500 reputation points',
97
137
  category: 'contribution',
98
138
  icon: 'shield',
99
- iconColor: '#FF2D55',
139
+ iconColor: ACHIEVEMENT_TINT.pink,
100
140
  unlocked: reputationTotal >= 500,
101
141
  rarity: 'epic'
102
142
  }, {
@@ -105,7 +145,7 @@ const TrustRewardsScreen = ({
105
145
  description: t('trust.achievements.legendDesc') || 'Reached 1000 reputation points',
106
146
  category: 'milestone',
107
147
  icon: 'trophy',
108
- iconColor: '#FFD700',
148
+ iconColor: ACHIEVEMENT_TINT.gold,
109
149
  unlocked: reputationTotal >= 1000,
110
150
  rarity: 'legendary'
111
151
  }, {
@@ -114,7 +154,7 @@ const TrustRewardsScreen = ({
114
154
  description: t('trust.achievements.phoenixDesc') || 'Reached 2500 reputation points',
115
155
  category: 'milestone',
116
156
  icon: 'flame',
117
- iconColor: '#FF3B30',
157
+ iconColor: ACHIEVEMENT_TINT.red,
118
158
  unlocked: reputationTotal >= 2500,
119
159
  rarity: 'legendary'
120
160
  }, {
@@ -123,7 +163,7 @@ const TrustRewardsScreen = ({
123
163
  description: t('trust.achievements.unstoppableDesc') || 'Reached 5000 reputation points',
124
164
  category: 'milestone',
125
165
  icon: 'infinite',
126
- iconColor: '#5E5CE6',
166
+ iconColor: ACHIEVEMENT_TINT.indigo,
127
167
  unlocked: reputationTotal >= 5000,
128
168
  rarity: 'legendary'
129
169
  }, {
@@ -132,7 +172,7 @@ const TrustRewardsScreen = ({
132
172
  description: t('trust.achievements.bugHunterDesc') || 'Reported helpful bugs',
133
173
  category: 'contribution',
134
174
  icon: 'bug',
135
- iconColor: '#FF9500',
175
+ iconColor: ACHIEVEMENT_TINT.orange,
136
176
  unlocked: false,
137
177
  rarity: 'rare'
138
178
  }, {
@@ -141,7 +181,7 @@ const TrustRewardsScreen = ({
141
181
  description: t('trust.achievements.helperDesc') || 'Helped 10 users',
142
182
  category: 'contribution',
143
183
  icon: 'hand-left',
144
- iconColor: '#34C759',
184
+ iconColor: ACHIEVEMENT_TINT.green,
145
185
  unlocked: false,
146
186
  rarity: 'common'
147
187
  }, {
@@ -150,69 +190,40 @@ const TrustRewardsScreen = ({
150
190
  description: t('trust.achievements.streakMasterDesc') || '7 day activity streak',
151
191
  category: 'streak',
152
192
  icon: 'flash',
153
- iconColor: '#FFD700',
193
+ iconColor: ACHIEVEMENT_TINT.gold,
154
194
  unlocked: false,
155
195
  rarity: 'epic'
156
- }], [t, reputationTotal, colors]);
196
+ }], [t, reputationTotal]);
157
197
  const unlockedAchievements = achievements.filter(a => a.unlocked);
158
198
  const lockedAchievements = achievements.filter(a => !a.unlocked);
159
- const getRarityColor = rarity => {
160
- switch (rarity) {
161
- case 'legendary':
162
- return '#FFD700';
163
- case 'epic':
164
- return '#AF52DE';
165
- case 'rare':
166
- return '#007AFF';
167
- default:
168
- return bloomTheme.colors.textTertiary;
169
- }
170
- };
171
- const getAchievementValue = achievement => {
172
- // Extract numeric value from achievement based on ID and unlocked state
173
- const valueMap = {
174
- 'first-step': 1,
175
- 'novice': 10,
176
- 'contributor': 50,
177
- 'rising-star': 100,
178
- 'early-adopter': 200,
179
- 'community-hero': 500,
180
- 'legend': 1000,
181
- 'phoenix': 2500,
182
- 'unstoppable': 5000,
183
- 'helper': 10,
184
- 'streak-master': 7
185
- };
186
- return valueMap[achievement.id] || null;
187
- };
199
+ const getRarityColor = rarity => RARITY_TINT[rarity] || colors.textTertiary;
200
+ const getAchievementValue = achievement => ACHIEVEMENT_VALUE[achievement.id] ?? null;
188
201
  const renderAchievement = achievement => {
189
202
  const rarityColor = getRarityColor(achievement.rarity);
190
203
  const isLocked = !achievement.unlocked;
191
204
  const achievementValue = getAchievementValue(achievement);
192
205
 
193
- // Two-tone colors: darker for borders/shadow, lighter for highlights
194
- // Use achievement iconColor for unlocked badges, gray for locked
195
- const baseColor = isLocked ? bloomTheme.colors.textTertiary : achievement.iconColor || bloomTheme.colors.textTertiary;
196
- const darkTone = darkenColor(baseColor, 0.45); // Darker border/shadow (more contrast)
197
- const lightTone = lightenColor(baseColor, 0.25); // Lighter highlight
198
- const mediumTone = baseColor; // Base color
199
-
206
+ // Two-tone colors: darker for borders/shadow, lighter for highlights.
207
+ // Use the achievement identity tint for unlocked badges, neutral for locked.
208
+ const baseColor = isLocked ? colors.textTertiary : achievement.iconColor || colors.textTertiary;
209
+ const darkTone = darkenColor(baseColor, BADGE_DARKEN);
210
+ const lightTone = lightenColor(baseColor, BADGE_LIGHTEN);
211
+ const mediumTone = baseColor;
200
212
  return /*#__PURE__*/_jsxs(View, {
201
- style: [styles.achievementCard, {
202
- backgroundColor: colors.card
203
- }],
213
+ className: "bg-fill rounded-radius-20 items-center",
214
+ style: styles.achievementCard,
204
215
  children: [/*#__PURE__*/_jsxs(View, {
205
216
  style: styles.badgeContainer,
206
217
  children: [!isLocked && /*#__PURE__*/_jsx(View, {
207
218
  style: [styles.badgeGlow, styles.badgeOrganic, {
208
219
  backgroundColor: darkTone,
209
- opacity: 0.3
220
+ opacity: BADGE_GLOW_OPACITY
210
221
  }]
211
222
  }), /*#__PURE__*/_jsxs(View, {
212
223
  style: [styles.badgeMain, styles.badgeOrganic, {
213
- backgroundColor: isLocked ? bloomTheme.colors.border : mediumTone,
224
+ backgroundColor: isLocked ? colors.border : mediumTone,
214
225
  borderColor: darkTone,
215
- borderWidth: 5,
226
+ borderWidth: BADGE_BORDER_WIDTH,
216
227
  shadowColor: darkTone
217
228
  }],
218
229
  children: [!isLocked && /*#__PURE__*/_jsxs(_Fragment, {
@@ -222,7 +233,7 @@ const TrustRewardsScreen = ({
222
233
  }]
223
234
  }), /*#__PURE__*/_jsx(View, {
224
235
  style: [styles.badgeHighlightAccent, {
225
- backgroundColor: lightenColor(lightTone, 0.1)
236
+ backgroundColor: lightenColor(lightTone, ACCENT_LIGHTEN)
226
237
  }]
227
238
  })]
228
239
  }), /*#__PURE__*/_jsx(View, {
@@ -230,11 +241,11 @@ const TrustRewardsScreen = ({
230
241
  children: isLocked ? /*#__PURE__*/_jsx(Ionicons, {
231
242
  name: "lock-closed",
232
243
  size: 40,
233
- color: bloomTheme.colors.textTertiary
244
+ color: colors.textTertiary
234
245
  }) : /*#__PURE__*/_jsx(Ionicons, {
235
246
  name: achievement.icon,
236
247
  size: 40,
237
- color: bloomTheme.colors.negativeForeground
248
+ color: BADGE_ON_COLOR
238
249
  })
239
250
  }), achievementValue !== null && !isLocked && /*#__PURE__*/_jsx(View, {
240
251
  style: styles.badgeValueContainer,
@@ -249,129 +260,114 @@ const TrustRewardsScreen = ({
249
260
  }), achievement.unlocked && /*#__PURE__*/_jsx(View, {
250
261
  style: [styles.rarityBadge, {
251
262
  backgroundColor: rarityColor,
252
- borderColor: darkenColor(rarityColor, 0.4)
263
+ borderColor: darkenColor(rarityColor, RARITY_DARKEN)
253
264
  }],
254
265
  children: /*#__PURE__*/_jsx(Text, {
255
266
  style: [styles.rarityText, {
256
- color: bloomTheme.colors.negativeForeground
267
+ color: BADGE_ON_COLOR
257
268
  }],
258
269
  children: achievement.rarity[0].toUpperCase()
259
270
  })
260
271
  })]
261
- }), /*#__PURE__*/_jsx(Text, {
262
- style: [styles.achievementName, {
263
- color: bloomTheme.colors.text,
264
- opacity: isLocked ? 0.5 : 1
265
- }],
272
+ }), /*#__PURE__*/_jsx(H5, {
273
+ className: "text-text text-center",
274
+ style: isLocked ? styles.lockedDimmed : undefined,
275
+ numberOfLines: 2,
266
276
  children: achievement.name
267
277
  }), /*#__PURE__*/_jsx(Text, {
268
- style: [styles.achievementDescription, {
269
- color: bloomTheme.colors.textTertiary,
270
- opacity: isLocked ? 0.5 : 1
271
- }],
278
+ className: "text-text-tertiary text-center text-xs mt-space-2",
279
+ style: isLocked ? styles.lockedDimmed : undefined,
272
280
  children: achievement.description
273
281
  })]
274
282
  }, achievement.id);
275
283
  };
276
284
  if (!isAuthenticated) {
277
285
  return /*#__PURE__*/_jsxs(View, {
278
- style: [styles.container, {
279
- backgroundColor: bloomTheme.colors.background
280
- }],
286
+ className: "flex-1 bg-bg",
281
287
  children: [/*#__PURE__*/_jsx(Header, {
282
288
  title: t('trust.rewards.title') || 'Trust Rewards',
283
289
  subtitle: t('trust.rewards.subtitle') || 'Unlock special features and recognition',
284
290
  onBack: goBack,
285
291
  elevation: "subtle"
286
292
  }), /*#__PURE__*/_jsx(View, {
287
- style: styles.centerContent,
293
+ className: "flex-1 items-center justify-center px-screen-margin",
288
294
  children: /*#__PURE__*/_jsx(Text, {
289
- style: [styles.message, {
290
- color: bloomTheme.colors.text
291
- }],
295
+ className: "text-text text-base text-center",
292
296
  children: t('common.status.notSignedIn') || 'Not signed in'
293
297
  })
294
298
  })]
295
299
  });
296
300
  }
301
+ const progressRatio = achievements.length > 0 ? unlockedAchievements.length / achievements.length : 0;
297
302
  return /*#__PURE__*/_jsxs(View, {
298
- style: [styles.container, {
299
- backgroundColor: bloomTheme.colors.background
300
- }],
303
+ className: "flex-1 bg-bg",
301
304
  children: [/*#__PURE__*/_jsx(Header, {
302
305
  title: t('trust.rewards.title') || 'Trust Rewards',
303
306
  subtitle: t('trust.rewards.subtitle') || 'Unlock special features and recognition',
304
307
  onBack: goBack,
305
308
  elevation: "subtle"
306
309
  }), /*#__PURE__*/_jsxs(ScrollView, {
307
- contentContainerStyle: styles.contentContainer,
310
+ className: "flex-1",
311
+ contentContainerClassName: "px-screen-margin pt-space-20 pb-space-40",
308
312
  showsVerticalScrollIndicator: false,
309
313
  children: [/*#__PURE__*/_jsxs(View, {
310
- style: [styles.statsCard, {
311
- backgroundColor: colors.card
312
- }],
314
+ className: "bg-fill rounded-radius-20 p-space-20 mb-space-24",
313
315
  children: [/*#__PURE__*/_jsxs(View, {
314
- style: styles.statsHeader,
316
+ className: "flex-row justify-between items-center mb-space-16",
315
317
  children: [/*#__PURE__*/_jsxs(View, {
316
- children: [/*#__PURE__*/_jsx(Text, {
317
- style: [styles.currentReputation, {
318
- color: themeStyles.primaryColor
319
- }],
318
+ children: [/*#__PURE__*/_jsx(H1, {
319
+ className: "text-text",
320
+ style: {
321
+ color: colors.primary
322
+ },
320
323
  children: reputationTotal
321
324
  }), /*#__PURE__*/_jsx(Text, {
322
- style: [styles.reputationLabel, {
323
- color: bloomTheme.colors.textTertiary
324
- }],
325
+ className: "text-text-tertiary text-sm",
325
326
  children: t('trust.center.balance') || 'Reputation Points'
326
327
  })]
327
328
  }), /*#__PURE__*/_jsxs(View, {
328
- style: styles.achievementStats,
329
- children: [/*#__PURE__*/_jsx(Text, {
330
- style: [styles.achievementCount, {
331
- color: themeStyles.primaryColor
332
- }],
329
+ className: "items-end",
330
+ children: [/*#__PURE__*/_jsx(H1, {
331
+ className: "text-text",
332
+ style: {
333
+ color: colors.primary
334
+ },
333
335
  children: unlockedAchievements.length
334
336
  }), /*#__PURE__*/_jsx(Text, {
335
- style: [styles.achievementCountLabel, {
336
- color: bloomTheme.colors.textTertiary
337
- }],
337
+ className: "text-text-tertiary text-sm",
338
338
  children: t('trust.achievements.unlocked') || 'Achievements'
339
339
  })]
340
340
  })]
341
341
  }), /*#__PURE__*/_jsxs(View, {
342
- style: styles.progressBarContainer,
342
+ className: "mt-space-8",
343
343
  children: [/*#__PURE__*/_jsx(View, {
344
+ className: "rounded-radius-full overflow-hidden mb-space-8",
344
345
  style: [styles.progressBar, {
345
- backgroundColor: bloomTheme.colors.border
346
+ backgroundColor: colors.border
346
347
  }],
347
348
  children: /*#__PURE__*/_jsx(View, {
349
+ className: "rounded-radius-full",
348
350
  style: [styles.progressBarFill, {
349
- width: `${unlockedAchievements.length / achievements.length * 100}%`,
350
- backgroundColor: themeStyles.primaryColor
351
+ width: `${progressRatio * 100}%`,
352
+ backgroundColor: colors.primary
351
353
  }]
352
354
  })
353
355
  }), /*#__PURE__*/_jsxs(Text, {
354
- style: [styles.progressText, {
355
- color: bloomTheme.colors.textTertiary
356
- }],
356
+ className: "text-text-tertiary text-xs text-right",
357
357
  children: [unlockedAchievements.length, " / ", achievements.length]
358
358
  })]
359
359
  })]
360
360
  }), unlockedAchievements.length > 0 && /*#__PURE__*/_jsxs(_Fragment, {
361
- children: [/*#__PURE__*/_jsx(Text, {
362
- style: [styles.sectionTitle, {
363
- color: bloomTheme.colors.text
364
- }],
361
+ children: [/*#__PURE__*/_jsx(H4, {
362
+ className: "text-text mt-space-8",
365
363
  children: t('trust.achievements.unlocked') || 'Unlocked Achievements'
366
364
  }), /*#__PURE__*/_jsx(View, {
367
365
  style: styles.achievementsGrid,
368
366
  children: unlockedAchievements.map(achievement => renderAchievement(achievement))
369
367
  })]
370
368
  }), lockedAchievements.length > 0 && /*#__PURE__*/_jsxs(_Fragment, {
371
- children: [/*#__PURE__*/_jsx(Text, {
372
- style: [styles.sectionTitle, {
373
- color: bloomTheme.colors.text
374
- }],
369
+ children: [/*#__PURE__*/_jsx(H4, {
370
+ className: "text-text mt-space-8",
375
371
  children: t('trust.achievements.locked') || 'Locked Achievements'
376
372
  }), /*#__PURE__*/_jsx(View, {
377
373
  style: styles.achievementsGrid,
@@ -381,75 +377,17 @@ const TrustRewardsScreen = ({
381
377
  })]
382
378
  });
383
379
  };
380
+
381
+ // Measured/positioned layout only — no color, no theme surfaces.
384
382
  const styles = StyleSheet.create({
385
- container: {
386
- flex: 1
387
- },
388
- contentContainer: {
389
- paddingHorizontal: 24,
390
- paddingTop: 20,
391
- paddingBottom: 40
392
- },
393
- centerContent: {
394
- flex: 1,
395
- justifyContent: 'center',
396
- alignItems: 'center'
397
- },
398
- message: {
399
- fontSize: 16,
400
- textAlign: 'center'
401
- },
402
- statsCard: {
403
- borderRadius: 18,
404
- padding: 20,
405
- marginBottom: 24
406
- },
407
- statsHeader: {
408
- flexDirection: 'row',
409
- justifyContent: 'space-between',
410
- alignItems: 'center',
411
- marginBottom: 16
412
- },
413
- currentReputation: {
414
- fontSize: 36,
415
- fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
416
- marginBottom: 4
417
- },
418
- achievementStats: {
419
- alignItems: 'flex-end'
420
- },
421
- achievementCount: {
422
- fontSize: 36,
423
- fontWeight: Platform.OS === 'web' ? 'bold' : undefined,
424
- marginBottom: 4
425
- },
426
- achievementCountLabel: {
427
- fontSize: 14
428
- },
429
- reputationLabel: {
430
- fontSize: 14
431
- },
432
- progressBarContainer: {
433
- marginTop: 8
383
+ lockedDimmed: {
384
+ opacity: LOCKED_OPACITY
434
385
  },
435
386
  progressBar: {
436
- height: 8,
437
- borderRadius: 4,
438
- overflow: 'hidden',
439
- marginBottom: 8
387
+ height: 8
440
388
  },
441
389
  progressBarFill: {
442
- height: '100%',
443
- borderRadius: 4
444
- },
445
- progressText: {
446
- fontSize: 12,
447
- textAlign: 'right'
448
- },
449
- sectionTitle: {
450
- fontSize: 20,
451
- fontWeight: Platform.OS === 'web' ? '600' : undefined,
452
- marginTop: 8
390
+ height: '100%'
453
391
  },
454
392
  achievementsGrid: {
455
393
  flexDirection: 'row',
@@ -461,10 +399,8 @@ const styles = StyleSheet.create({
461
399
  achievementCard: {
462
400
  width: '47%',
463
401
  minWidth: 140,
464
- borderRadius: 20,
465
402
  padding: 20,
466
- paddingTop: 24,
467
- alignItems: 'center'
403
+ paddingTop: 24
468
404
  },
469
405
  badgeContainer: {
470
406
  alignItems: 'center',
@@ -579,18 +515,6 @@ const styles = StyleSheet.create({
579
515
  rarityText: {
580
516
  fontSize: 14,
581
517
  fontWeight: 'bold'
582
- },
583
- achievementName: {
584
- fontSize: 15,
585
- fontWeight: '700',
586
- textAlign: 'center',
587
- marginBottom: 6,
588
- marginTop: 4
589
- },
590
- achievementDescription: {
591
- fontSize: 11,
592
- textAlign: 'center',
593
- lineHeight: 15
594
518
  }
595
519
  });
596
520
  export default TrustRewardsScreen;