@oxyhq/services 11.0.0 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/index.js +7 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/ui/components/AccountMenu.js +9 -5
- package/lib/commonjs/ui/components/AccountMenu.js.map +1 -1
- package/lib/commonjs/ui/components/AnotherDeviceQR.js +51 -56
- package/lib/commonjs/ui/components/AnotherDeviceQR.js.map +1 -1
- package/lib/commonjs/ui/components/BottomSheetRouter.js +1 -0
- package/lib/commonjs/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/commonjs/ui/components/FollowButton.js +18 -5
- package/lib/commonjs/ui/components/FollowButton.js.map +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js +1 -1
- package/lib/commonjs/ui/components/OxyLogo.js.map +1 -1
- package/lib/commonjs/ui/components/OxyProvider.js +23 -7
- package/lib/commonjs/ui/components/OxyProvider.js.map +1 -1
- package/lib/commonjs/ui/components/SignInModal.js +20 -1
- package/lib/commonjs/ui/components/SignInModal.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js +19 -9
- package/lib/commonjs/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js +4 -2
- package/lib/commonjs/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/commonjs/ui/context/OxyContext.js +153 -19
- package/lib/commonjs/ui/context/OxyContext.js.map +1 -1
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js +6 -17
- package/lib/commonjs/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js +5 -5
- package/lib/commonjs/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js +38 -38
- package/lib/commonjs/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js +2 -2
- package/lib/commonjs/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/queryKeys.js +3 -3
- package/lib/commonjs/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js +1 -1
- package/lib/commonjs/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js +16 -12
- package/lib/commonjs/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js +10 -6
- package/lib/commonjs/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/commonjs/ui/hooks/queryClient.js +6 -5
- package/lib/commonjs/ui/hooks/queryClient.js.map +1 -1
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js +40 -2
- package/lib/commonjs/ui/hooks/useOxyAuthSession.js.map +1 -1
- package/lib/commonjs/ui/hooks/useProfileEditing.js +21 -0
- package/lib/commonjs/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/commonjs/ui/hooks/useSessionManagement.js +3 -3
- package/lib/commonjs/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js +100 -108
- package/lib/commonjs/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AppInfoScreen.js +227 -273
- package/lib/commonjs/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/AvatarCropScreen.js +10 -4
- package/lib/commonjs/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js +20 -37
- package/lib/commonjs/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js +89 -201
- package/lib/commonjs/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js +80 -208
- package/lib/commonjs/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FAQScreen.js +56 -208
- package/lib/commonjs/ui/screens/FAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FeedbackScreen.js +303 -352
- package/lib/commonjs/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FileManagementScreen.js +20 -20
- package/lib/commonjs/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HelpSupportScreen.js +77 -89
- package/lib/commonjs/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HistoryViewScreen.js +43 -58
- package/lib/commonjs/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js +67 -90
- package/lib/commonjs/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js +77 -177
- package/lib/commonjs/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js +113 -107
- package/lib/commonjs/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ManageAccountScreen.js +55 -114
- package/lib/commonjs/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/NotificationsScreen.js +67 -85
- package/lib/commonjs/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/OxyAuthScreen.js +71 -135
- package/lib/commonjs/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js +15 -9
- package/lib/commonjs/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PreferencesScreen.js +65 -83
- package/lib/commonjs/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js +378 -1023
- package/lib/commonjs/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js +294 -242
- package/lib/commonjs/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ProfileScreen.js +194 -333
- package/lib/commonjs/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js +57 -97
- package/lib/commonjs/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js +41 -41
- package/lib/commonjs/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserLinksScreen.js +17 -24
- package/lib/commonjs/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/UserListScreen.js +83 -214
- package/lib/commonjs/ui/screens/UserListScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js +115 -77
- package/lib/commonjs/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js +70 -57
- package/lib/commonjs/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js +136 -332
- package/lib/commonjs/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js +47 -137
- package/lib/commonjs/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js +182 -115
- package/lib/commonjs/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js +138 -214
- package/lib/commonjs/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js +54 -92
- package/lib/commonjs/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/commonjs/ui/utils/activeAuthuser.js +15 -9
- package/lib/commonjs/ui/utils/activeAuthuser.js.map +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js +1 -1
- package/lib/commonjs/ui/utils/avatarUtils.js.map +1 -1
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/ui/components/AccountMenu.js +10 -6
- package/lib/module/ui/components/AccountMenu.js.map +1 -1
- package/lib/module/ui/components/AnotherDeviceQR.js +50 -56
- package/lib/module/ui/components/AnotherDeviceQR.js.map +1 -1
- package/lib/module/ui/components/BottomSheetRouter.js +2 -1
- package/lib/module/ui/components/BottomSheetRouter.js.map +1 -1
- package/lib/module/ui/components/FollowButton.js +18 -5
- package/lib/module/ui/components/FollowButton.js.map +1 -1
- package/lib/module/ui/components/OxyLogo.js +1 -1
- package/lib/module/ui/components/OxyLogo.js.map +1 -1
- package/lib/module/ui/components/OxyProvider.js +23 -7
- package/lib/module/ui/components/OxyProvider.js.map +1 -1
- package/lib/module/ui/components/SignInModal.js +20 -1
- package/lib/module/ui/components/SignInModal.js.map +1 -1
- package/lib/module/ui/components/fileManagement/FileViewer.js +19 -9
- package/lib/module/ui/components/fileManagement/FileViewer.js.map +1 -1
- package/lib/module/ui/components/fileManagement/UploadPreview.js +4 -2
- package/lib/module/ui/components/fileManagement/UploadPreview.js.map +1 -1
- package/lib/module/ui/context/OxyContext.js +154 -20
- package/lib/module/ui/context/OxyContext.js.map +1 -1
- package/lib/module/ui/context/hooks/useAuthOperations.js +6 -17
- package/lib/module/ui/context/hooks/useAuthOperations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/mutationFactory.js +5 -5
- package/lib/module/ui/hooks/mutations/mutationFactory.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useAccountMutations.js +38 -38
- package/lib/module/ui/hooks/mutations/useAccountMutations.js.map +1 -1
- package/lib/module/ui/hooks/mutations/useServicesMutations.js +2 -2
- package/lib/module/ui/hooks/mutations/useServicesMutations.js.map +1 -1
- package/lib/module/ui/hooks/queries/queryKeys.js +3 -3
- package/lib/module/ui/hooks/queries/queryKeys.js.map +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js +1 -1
- package/lib/module/ui/hooks/queries/useAccountQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/usePaymentQueries.js +16 -12
- package/lib/module/ui/hooks/queries/usePaymentQueries.js.map +1 -1
- package/lib/module/ui/hooks/queries/useServicesQueries.js +9 -6
- package/lib/module/ui/hooks/queries/useServicesQueries.js.map +1 -1
- package/lib/module/ui/hooks/queryClient.js +6 -5
- package/lib/module/ui/hooks/queryClient.js.map +1 -1
- package/lib/module/ui/hooks/useOxyAuthSession.js +40 -2
- package/lib/module/ui/hooks/useOxyAuthSession.js.map +1 -1
- package/lib/module/ui/hooks/useProfileEditing.js +21 -0
- package/lib/module/ui/hooks/useProfileEditing.js.map +1 -1
- package/lib/module/ui/hooks/useSessionManagement.js +4 -3
- package/lib/module/ui/hooks/useSessionManagement.js.map +1 -1
- package/lib/module/ui/screens/AccountVerificationScreen.js +101 -109
- package/lib/module/ui/screens/AccountVerificationScreen.js.map +1 -1
- package/lib/module/ui/screens/AppInfoScreen.js +228 -275
- package/lib/module/ui/screens/AppInfoScreen.js.map +1 -1
- package/lib/module/ui/screens/AvatarCropScreen.js +10 -4
- package/lib/module/ui/screens/AvatarCropScreen.js.map +1 -1
- package/lib/module/ui/screens/ConnectedAppsScreen.js +19 -39
- package/lib/module/ui/screens/ConnectedAppsScreen.js.map +1 -1
- package/lib/module/ui/screens/CreateManagedAccountScreen.js +90 -202
- package/lib/module/ui/screens/CreateManagedAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/EditProfileFieldScreen.js +77 -205
- package/lib/module/ui/screens/EditProfileFieldScreen.js.map +1 -1
- package/lib/module/ui/screens/FAQScreen.js +55 -207
- package/lib/module/ui/screens/FAQScreen.js.map +1 -1
- package/lib/module/ui/screens/FeedbackScreen.js +301 -350
- package/lib/module/ui/screens/FeedbackScreen.js.map +1 -1
- package/lib/module/ui/screens/FileManagementScreen.js +20 -20
- package/lib/module/ui/screens/FileManagementScreen.js.map +1 -1
- package/lib/module/ui/screens/HelpSupportScreen.js +78 -90
- package/lib/module/ui/screens/HelpSupportScreen.js.map +1 -1
- package/lib/module/ui/screens/HistoryViewScreen.js +44 -59
- package/lib/module/ui/screens/HistoryViewScreen.js.map +1 -1
- package/lib/module/ui/screens/LanguageSelectorScreen.js +68 -91
- package/lib/module/ui/screens/LanguageSelectorScreen.js.map +1 -1
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js +75 -177
- package/lib/module/ui/screens/LearnMoreUsernamesScreen.js.map +1 -1
- package/lib/module/ui/screens/LegalDocumentsScreen.js +116 -108
- package/lib/module/ui/screens/LegalDocumentsScreen.js.map +1 -1
- package/lib/module/ui/screens/ManageAccountScreen.js +52 -112
- package/lib/module/ui/screens/ManageAccountScreen.js.map +1 -1
- package/lib/module/ui/screens/NotificationsScreen.js +68 -86
- package/lib/module/ui/screens/NotificationsScreen.js.map +1 -1
- package/lib/module/ui/screens/OxyAuthScreen.js +69 -134
- package/lib/module/ui/screens/OxyAuthScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentGatewayScreen.js +16 -10
- package/lib/module/ui/screens/PaymentGatewayScreen.js.map +1 -1
- package/lib/module/ui/screens/PreferencesScreen.js +66 -84
- package/lib/module/ui/screens/PreferencesScreen.js.map +1 -1
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js +366 -1012
- package/lib/module/ui/screens/PremiumSubscriptionScreen.js.map +1 -1
- package/lib/module/ui/screens/PrivacySettingsScreen.js +295 -243
- package/lib/module/ui/screens/PrivacySettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/ProfileScreen.js +192 -331
- package/lib/module/ui/screens/ProfileScreen.js.map +1 -1
- package/lib/module/ui/screens/SavesCollectionsScreen.js +58 -98
- package/lib/module/ui/screens/SavesCollectionsScreen.js.map +1 -1
- package/lib/module/ui/screens/SearchSettingsScreen.js +42 -42
- package/lib/module/ui/screens/SearchSettingsScreen.js.map +1 -1
- package/lib/module/ui/screens/UserLinksScreen.js +18 -25
- package/lib/module/ui/screens/UserLinksScreen.js.map +1 -1
- package/lib/module/ui/screens/UserListScreen.js +81 -212
- package/lib/module/ui/screens/UserListScreen.js.map +1 -1
- package/lib/module/ui/screens/WelcomeNewUserScreen.js +114 -76
- package/lib/module/ui/screens/WelcomeNewUserScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustAboutScreen.js +69 -57
- package/lib/module/ui/screens/trust/TrustAboutScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustCenterScreen.js +135 -332
- package/lib/module/ui/screens/trust/TrustCenterScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustFAQScreen.js +48 -138
- package/lib/module/ui/screens/trust/TrustFAQScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js +184 -117
- package/lib/module/ui/screens/trust/TrustLeaderboardScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js +132 -208
- package/lib/module/ui/screens/trust/TrustRewardsScreen.js.map +1 -1
- package/lib/module/ui/screens/trust/TrustRulesScreen.js +58 -94
- package/lib/module/ui/screens/trust/TrustRulesScreen.js.map +1 -1
- package/lib/module/ui/utils/activeAuthuser.js +15 -9
- package/lib/module/ui/utils/activeAuthuser.js.map +1 -1
- package/lib/module/ui/utils/avatarUtils.js +1 -1
- package/lib/module/ui/utils/avatarUtils.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +2 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts +2 -0
- package/lib/typescript/commonjs/ui/components/AccountMenu.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts +12 -2
- package/lib/typescript/commonjs/ui/components/AnotherDeviceQR.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts +3 -2
- package/lib/typescript/commonjs/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
- package/lib/typescript/commonjs/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts +34 -0
- package/lib/typescript/commonjs/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts +6 -0
- package/lib/typescript/commonjs/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts +3 -3
- package/lib/typescript/commonjs/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts +22 -0
- package/lib/typescript/commonjs/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts +3 -0
- package/lib/typescript/commonjs/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts +2 -1
- package/lib/typescript/commonjs/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/commonjs/ui/utils/activeAuthuser.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +2 -0
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AccountMenu.d.ts +2 -0
- package/lib/typescript/module/ui/components/AccountMenu.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts +12 -2
- package/lib/typescript/module/ui/components/AnotherDeviceQR.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/BottomSheetRouter.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/FollowButton.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/OxyProvider.d.ts +3 -2
- package/lib/typescript/module/ui/components/OxyProvider.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/SignInModal.d.ts.map +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts +1 -1
- package/lib/typescript/module/ui/components/TouchableRipple/TouchableRipple.native.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/OxyContext.d.ts +34 -0
- package/lib/typescript/module/ui/context/OxyContext.d.ts.map +1 -1
- package/lib/typescript/module/ui/context/hooks/useAuthOperations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts +6 -0
- package/lib/typescript/module/ui/hooks/mutations/useAccountMutations.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts +3 -3
- package/lib/typescript/module/ui/hooks/queries/queryKeys.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queries/useServicesQueries.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/queryClient.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts +22 -0
- package/lib/typescript/module/ui/hooks/useOxyAuthSession.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts +3 -0
- package/lib/typescript/module/ui/hooks/useProfileEditing.d.ts.map +1 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts +2 -1
- package/lib/typescript/module/ui/hooks/useSessionManagement.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AccountVerificationScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AppInfoScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/AvatarCropScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ConnectedAppsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/CreateManagedAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/EditProfileFieldScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/FeedbackScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HelpSupportScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/HistoryViewScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LanguageSelectorScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LearnMoreUsernamesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/LegalDocumentsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ManageAccountScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/NotificationsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/OxyAuthScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PaymentGatewayScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PreferencesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PremiumSubscriptionScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/PrivacySettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/ProfileScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SavesCollectionsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/SearchSettingsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserLinksScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/UserListScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/WelcomeNewUserScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustAboutScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustCenterScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustFAQScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustLeaderboardScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRewardsScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/screens/trust/TrustRulesScreen.d.ts.map +1 -1
- package/lib/typescript/module/ui/utils/activeAuthuser.d.ts.map +1 -1
- package/lib/typescript/types/expo-haptics.d.ts +42 -0
- package/package.json +8 -3
- package/src/index.ts +2 -0
- package/src/types/expo-haptics.d.ts +42 -0
- package/src/ui/components/AccountMenu.tsx +11 -5
- package/src/ui/components/AnotherDeviceQR.tsx +53 -45
- package/src/ui/components/BottomSheetRouter.tsx +2 -1
- package/src/ui/components/FollowButton.tsx +24 -5
- package/src/ui/components/OxyLogo.tsx +1 -1
- package/src/ui/components/OxyProvider.tsx +22 -8
- package/src/ui/components/SignInModal.tsx +21 -2
- package/src/ui/components/TouchableRipple/TouchableRipple.native.tsx +1 -1
- package/src/ui/components/fileManagement/FileViewer.tsx +9 -9
- package/src/ui/components/fileManagement/UploadPreview.tsx +2 -2
- package/src/ui/context/OxyContext.tsx +178 -21
- package/src/ui/context/hooks/useAuthOperations.ts +6 -17
- package/src/ui/hooks/mutations/mutationFactory.ts +5 -5
- package/src/ui/hooks/mutations/useAccountMutations.ts +38 -38
- package/src/ui/hooks/mutations/useServicesMutations.ts +2 -2
- package/src/ui/hooks/queries/queryKeys.ts +6 -3
- package/src/ui/hooks/queries/useAccountQueries.ts +1 -1
- package/src/ui/hooks/queries/usePaymentQueries.ts +12 -12
- package/src/ui/hooks/queries/useServicesQueries.ts +9 -6
- package/src/ui/hooks/queryClient.ts +5 -5
- package/src/ui/hooks/useOxyAuthSession.ts +76 -2
- package/src/ui/hooks/useProfileEditing.ts +24 -0
- package/src/ui/hooks/useSessionManagement.ts +9 -6
- package/src/ui/screens/AccountVerificationScreen.tsx +101 -113
- package/src/ui/screens/AppInfoScreen.tsx +200 -238
- package/src/ui/screens/AvatarCropScreen.tsx +17 -4
- package/src/ui/screens/ConnectedAppsScreen.tsx +16 -34
- package/src/ui/screens/CreateManagedAccountScreen.tsx +94 -170
- package/src/ui/screens/EditProfileFieldScreen.tsx +77 -190
- package/src/ui/screens/FAQScreen.tsx +77 -208
- package/src/ui/screens/FeedbackScreen.tsx +330 -239
- package/src/ui/screens/FileManagementScreen.tsx +20 -20
- package/src/ui/screens/HelpSupportScreen.tsx +67 -82
- package/src/ui/screens/HistoryViewScreen.tsx +32 -38
- package/src/ui/screens/LanguageSelectorScreen.tsx +79 -93
- package/src/ui/screens/LearnMoreUsernamesScreen.tsx +81 -164
- package/src/ui/screens/LegalDocumentsScreen.tsx +184 -123
- package/src/ui/screens/ManageAccountScreen.tsx +48 -114
- package/src/ui/screens/NotificationsScreen.tsx +107 -106
- package/src/ui/screens/OxyAuthScreen.tsx +76 -109
- package/src/ui/screens/PaymentGatewayScreen.tsx +16 -7
- package/src/ui/screens/PreferencesScreen.tsx +96 -116
- package/src/ui/screens/PremiumSubscriptionScreen.tsx +419 -872
- package/src/ui/screens/PrivacySettingsScreen.tsx +203 -185
- package/src/ui/screens/ProfileScreen.tsx +162 -246
- package/src/ui/screens/SavesCollectionsScreen.tsx +78 -125
- package/src/ui/screens/SearchSettingsScreen.tsx +52 -41
- package/src/ui/screens/UserLinksScreen.tsx +18 -25
- package/src/ui/screens/UserListScreen.tsx +95 -188
- package/src/ui/screens/WelcomeNewUserScreen.tsx +109 -36
- package/src/ui/screens/trust/TrustAboutScreen.tsx +52 -41
- package/src/ui/screens/trust/TrustCenterScreen.tsx +184 -222
- package/src/ui/screens/trust/TrustFAQScreen.tsx +64 -124
- package/src/ui/screens/trust/TrustLeaderboardScreen.tsx +190 -67
- package/src/ui/screens/trust/TrustRewardsScreen.tsx +147 -182
- package/src/ui/screens/trust/TrustRulesScreen.tsx +77 -50
- package/src/ui/utils/activeAuthuser.ts +15 -9
- package/src/ui/utils/avatarUtils.ts +1 -1
- package/lib/commonjs/ui/components/feedback/FormInput.js +0 -72
- package/lib/commonjs/ui/components/feedback/FormInput.js.map +0 -1
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js +0 -261
- package/lib/commonjs/ui/components/feedback/feedbackStyles.js.map +0 -1
- package/lib/module/ui/components/feedback/FormInput.js +0 -67
- package/lib/module/ui/components/feedback/FormInput.js.map +0 -1
- package/lib/module/ui/components/feedback/feedbackStyles.js +0 -256
- package/lib/module/ui/components/feedback/feedbackStyles.js.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts +0 -20
- package/lib/typescript/commonjs/ui/components/feedback/FormInput.d.ts.map +0 -1
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/lib/typescript/commonjs/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/FormInput.d.ts +0 -20
- package/lib/typescript/module/ui/components/feedback/FormInput.d.ts.map +0 -1
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts +0 -279
- package/lib/typescript/module/ui/components/feedback/feedbackStyles.d.ts.map +0 -1
- package/src/ui/components/feedback/FormInput.tsx +0 -84
- package/src/ui/components/feedback/feedbackStyles.ts +0 -246
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","require","_reactNative","_Avatar","_interopRequireDefault","_Header","_useI18n","
|
|
1
|
+
{"version":3,"names":["_react","require","_reactNative","_core","_theme","_typography","_chip","_button","_vectorIcons","_Avatar","_interopRequireDefault","_Header","_useI18n","_OxyContext","_trustTier","_jsxRuntime","e","__esModule","default","AVATAR_SIZE","EMPTY_ICON_SIZE","ERROR_ICON_SIZE","PODIUM_RANK","TrustLeaderboardScreen","goBack","navigate","oxyServices","user","currentUser","useOxy","t","locale","useI18n","bloomTheme","useTheme","leaderboard","setLeaderboard","useState","isLoading","setIsLoading","error","setError","currentUserId","id","loadLeaderboard","useCallback","getReputationLeaderboard","then","data","Array","isArray","catch","err","logger","Error","String","component","message","finally","useEffect","title","subtitle","handleEntryPress","entry","userId","username","renderEntry","item","displayName","getAccountDisplayName","isViewer","isPodium","rank","highlightClass","jsxs","TouchableOpacity","style","styles","row","className","onPress","activeOpacity","accessibilityRole","accessibilityLabel","children","jsx","Text","numberOfLines","uri","avatar","getFileDownloadUrl","undefined","name","size","View","userColumn","tierRow","Chip","variant","color","getTrustTierLabel","trustTier","total","keyExtractor","index","ItemSeparator","useMemo","separator","onBack","elevation","center","ActivityIndicator","colors","primary","Ionicons","Button","FlatList","renderItem","contentContainerStyle","listContent","ItemSeparatorComponent","ListEmptyComponent","emptyContainer","textSecondary","H6","StyleSheet","create","flex","justifyContent","alignItems","flexGrow","paddingBottom","flexDirection","width","marginLeft","paddingTop","_default","exports"],"sourceRoot":"../../../../../src","sources":["ui/screens/trust/TrustLeaderboardScreen.tsx"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAQA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,WAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAN,OAA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ChB;AACJ,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAvH,OAAA,GAEYK,sBAAsB","ignoreList":[]}
|
|
@@ -8,18 +8,63 @@ var _react = require("react");
|
|
|
8
8
|
var _reactNative = require("react-native");
|
|
9
9
|
var _Header = _interopRequireDefault(require("../../components/Header.js"));
|
|
10
10
|
var _vectorIcons = require("@expo/vector-icons");
|
|
11
|
-
var _useI18n = require("../../hooks/useI18n.js");
|
|
12
11
|
var _theme = require("@oxyhq/bloom/theme");
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var _theme2 = require("../../constants/theme.js");
|
|
12
|
+
var _typography = require("@oxyhq/bloom/typography");
|
|
13
|
+
var _useI18n = require("../../hooks/useI18n.js");
|
|
16
14
|
var _OxyContext = require("../../context/OxyContext.js");
|
|
17
15
|
var _colorUtils = require("../../utils/colorUtils.js");
|
|
18
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
17
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
+
/**
|
|
19
|
+
* Per-achievement identity tints. Like the trust-tier palette in `trustTier.ts`,
|
|
20
|
+
* these are data, not theme surfaces — they brand each badge regardless of theme.
|
|
21
|
+
*/
|
|
22
|
+
const ACHIEVEMENT_TINT = {
|
|
23
|
+
gray: '#8E8E93',
|
|
24
|
+
green: '#34C759',
|
|
25
|
+
blue: '#007AFF',
|
|
26
|
+
orange: '#FF9500',
|
|
27
|
+
purple: '#AF52DE',
|
|
28
|
+
pink: '#FF2D55',
|
|
29
|
+
gold: '#FFD700',
|
|
30
|
+
red: '#FF3B30',
|
|
31
|
+
indigo: '#5E5CE6'
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** Rarity-tier identity tints for the corner rarity accent. */
|
|
35
|
+
const RARITY_TINT = {
|
|
36
|
+
legendary: ACHIEVEMENT_TINT.gold,
|
|
37
|
+
epic: ACHIEVEMENT_TINT.purple,
|
|
38
|
+
rare: ACHIEVEMENT_TINT.blue,
|
|
39
|
+
common: ''
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** Contrast-locked foreground for icons/value text painted over a colored badge fill. */
|
|
43
|
+
const BADGE_ON_COLOR = '#FFFFFF';
|
|
44
|
+
|
|
45
|
+
/** Reputation thresholds that unlock each milestone, and the value shown on its badge. */
|
|
46
|
+
const ACHIEVEMENT_VALUE = {
|
|
47
|
+
'first-step': 1,
|
|
48
|
+
novice: 10,
|
|
49
|
+
contributor: 50,
|
|
50
|
+
'rising-star': 100,
|
|
51
|
+
'early-adopter': 200,
|
|
52
|
+
'community-hero': 500,
|
|
53
|
+
legend: 1000,
|
|
54
|
+
phoenix: 2500,
|
|
55
|
+
unstoppable: 5000,
|
|
56
|
+
helper: 10,
|
|
57
|
+
'streak-master': 7
|
|
58
|
+
};
|
|
59
|
+
const BADGE_BORDER_WIDTH = 5;
|
|
60
|
+
const BADGE_GLOW_OPACITY = 0.3;
|
|
61
|
+
const BADGE_DARKEN = 0.45;
|
|
62
|
+
const BADGE_LIGHTEN = 0.25;
|
|
63
|
+
const RARITY_DARKEN = 0.4;
|
|
64
|
+
const ACCENT_LIGHTEN = 0.1;
|
|
65
|
+
const LOCKED_OPACITY = 0.5;
|
|
20
66
|
const TrustRewardsScreen = ({
|
|
21
|
-
goBack
|
|
22
|
-
theme
|
|
67
|
+
goBack
|
|
23
68
|
}) => {
|
|
24
69
|
const {
|
|
25
70
|
t
|
|
@@ -30,14 +75,9 @@ const TrustRewardsScreen = ({
|
|
|
30
75
|
isAuthenticated
|
|
31
76
|
} = (0, _OxyContext.useOxy)();
|
|
32
77
|
const [reputationTotal, setReputationTotal] = (0, _react.useState)(0);
|
|
33
|
-
const [
|
|
78
|
+
const [, setIsLoading] = (0, _react.useState)(true);
|
|
34
79
|
const bloomTheme = (0, _theme.useTheme)();
|
|
35
|
-
const
|
|
36
|
-
const normalizedColorScheme = (0, _core.normalizeColorScheme)(colorScheme);
|
|
37
|
-
const colors = _theme2.Colors[normalizedColorScheme];
|
|
38
|
-
const themeStyles = (0, _react.useMemo)(() => ({
|
|
39
|
-
primaryColor: '#d169e5'
|
|
40
|
-
}), []);
|
|
80
|
+
const colors = bloomTheme.colors;
|
|
41
81
|
(0, _react.useEffect)(() => {
|
|
42
82
|
if (!user || !isAuthenticated) {
|
|
43
83
|
setIsLoading(false);
|
|
@@ -56,7 +96,7 @@ const TrustRewardsScreen = ({
|
|
|
56
96
|
description: t('trust.achievements.firstStepDesc') || 'Earned your first reputation point',
|
|
57
97
|
category: 'milestone',
|
|
58
98
|
icon: 'footsteps',
|
|
59
|
-
iconColor:
|
|
99
|
+
iconColor: ACHIEVEMENT_TINT.gray,
|
|
60
100
|
unlocked: reputationTotal >= 1,
|
|
61
101
|
rarity: 'common'
|
|
62
102
|
}, {
|
|
@@ -65,7 +105,7 @@ const TrustRewardsScreen = ({
|
|
|
65
105
|
description: t('trust.achievements.noviceDesc') || 'Reached 10 reputation points',
|
|
66
106
|
category: 'milestone',
|
|
67
107
|
icon: 'leaf',
|
|
68
|
-
iconColor:
|
|
108
|
+
iconColor: ACHIEVEMENT_TINT.green,
|
|
69
109
|
unlocked: reputationTotal >= 10,
|
|
70
110
|
rarity: 'common'
|
|
71
111
|
}, {
|
|
@@ -73,8 +113,8 @@ const TrustRewardsScreen = ({
|
|
|
73
113
|
name: t('trust.achievements.contributor') || 'Contributor',
|
|
74
114
|
description: t('trust.achievements.contributorDesc') || 'Reached 50 reputation points',
|
|
75
115
|
category: 'contribution',
|
|
76
|
-
icon: '
|
|
77
|
-
iconColor:
|
|
116
|
+
icon: 'people',
|
|
117
|
+
iconColor: ACHIEVEMENT_TINT.blue,
|
|
78
118
|
unlocked: reputationTotal >= 50,
|
|
79
119
|
rarity: 'common'
|
|
80
120
|
}, {
|
|
@@ -83,7 +123,7 @@ const TrustRewardsScreen = ({
|
|
|
83
123
|
description: t('trust.achievements.risingStarDesc') || 'Reached 100 reputation points',
|
|
84
124
|
category: 'milestone',
|
|
85
125
|
icon: 'star',
|
|
86
|
-
iconColor:
|
|
126
|
+
iconColor: ACHIEVEMENT_TINT.orange,
|
|
87
127
|
unlocked: reputationTotal >= 100,
|
|
88
128
|
rarity: 'rare'
|
|
89
129
|
}, {
|
|
@@ -92,7 +132,7 @@ const TrustRewardsScreen = ({
|
|
|
92
132
|
description: t('trust.achievements.earlyAdopterDesc') || 'Been part of the community from the start',
|
|
93
133
|
category: 'special',
|
|
94
134
|
icon: 'rocket',
|
|
95
|
-
iconColor:
|
|
135
|
+
iconColor: ACHIEVEMENT_TINT.purple,
|
|
96
136
|
unlocked: reputationTotal >= 200,
|
|
97
137
|
rarity: 'rare'
|
|
98
138
|
}, {
|
|
@@ -101,7 +141,7 @@ const TrustRewardsScreen = ({
|
|
|
101
141
|
description: t('trust.achievements.communityHeroDesc') || 'Reached 500 reputation points',
|
|
102
142
|
category: 'contribution',
|
|
103
143
|
icon: 'shield',
|
|
104
|
-
iconColor:
|
|
144
|
+
iconColor: ACHIEVEMENT_TINT.pink,
|
|
105
145
|
unlocked: reputationTotal >= 500,
|
|
106
146
|
rarity: 'epic'
|
|
107
147
|
}, {
|
|
@@ -110,7 +150,7 @@ const TrustRewardsScreen = ({
|
|
|
110
150
|
description: t('trust.achievements.legendDesc') || 'Reached 1000 reputation points',
|
|
111
151
|
category: 'milestone',
|
|
112
152
|
icon: 'trophy',
|
|
113
|
-
iconColor:
|
|
153
|
+
iconColor: ACHIEVEMENT_TINT.gold,
|
|
114
154
|
unlocked: reputationTotal >= 1000,
|
|
115
155
|
rarity: 'legendary'
|
|
116
156
|
}, {
|
|
@@ -119,7 +159,7 @@ const TrustRewardsScreen = ({
|
|
|
119
159
|
description: t('trust.achievements.phoenixDesc') || 'Reached 2500 reputation points',
|
|
120
160
|
category: 'milestone',
|
|
121
161
|
icon: 'flame',
|
|
122
|
-
iconColor:
|
|
162
|
+
iconColor: ACHIEVEMENT_TINT.red,
|
|
123
163
|
unlocked: reputationTotal >= 2500,
|
|
124
164
|
rarity: 'legendary'
|
|
125
165
|
}, {
|
|
@@ -128,7 +168,7 @@ const TrustRewardsScreen = ({
|
|
|
128
168
|
description: t('trust.achievements.unstoppableDesc') || 'Reached 5000 reputation points',
|
|
129
169
|
category: 'milestone',
|
|
130
170
|
icon: 'infinite',
|
|
131
|
-
iconColor:
|
|
171
|
+
iconColor: ACHIEVEMENT_TINT.indigo,
|
|
132
172
|
unlocked: reputationTotal >= 5000,
|
|
133
173
|
rarity: 'legendary'
|
|
134
174
|
}, {
|
|
@@ -137,7 +177,7 @@ const TrustRewardsScreen = ({
|
|
|
137
177
|
description: t('trust.achievements.bugHunterDesc') || 'Reported helpful bugs',
|
|
138
178
|
category: 'contribution',
|
|
139
179
|
icon: 'bug',
|
|
140
|
-
iconColor:
|
|
180
|
+
iconColor: ACHIEVEMENT_TINT.orange,
|
|
141
181
|
unlocked: false,
|
|
142
182
|
rarity: 'rare'
|
|
143
183
|
}, {
|
|
@@ -146,7 +186,7 @@ const TrustRewardsScreen = ({
|
|
|
146
186
|
description: t('trust.achievements.helperDesc') || 'Helped 10 users',
|
|
147
187
|
category: 'contribution',
|
|
148
188
|
icon: 'hand-left',
|
|
149
|
-
iconColor:
|
|
189
|
+
iconColor: ACHIEVEMENT_TINT.green,
|
|
150
190
|
unlocked: false,
|
|
151
191
|
rarity: 'common'
|
|
152
192
|
}, {
|
|
@@ -155,69 +195,40 @@ const TrustRewardsScreen = ({
|
|
|
155
195
|
description: t('trust.achievements.streakMasterDesc') || '7 day activity streak',
|
|
156
196
|
category: 'streak',
|
|
157
197
|
icon: 'flash',
|
|
158
|
-
iconColor:
|
|
198
|
+
iconColor: ACHIEVEMENT_TINT.gold,
|
|
159
199
|
unlocked: false,
|
|
160
200
|
rarity: 'epic'
|
|
161
|
-
}], [t, reputationTotal
|
|
201
|
+
}], [t, reputationTotal]);
|
|
162
202
|
const unlockedAchievements = achievements.filter(a => a.unlocked);
|
|
163
203
|
const lockedAchievements = achievements.filter(a => !a.unlocked);
|
|
164
|
-
const getRarityColor = rarity =>
|
|
165
|
-
|
|
166
|
-
case 'legendary':
|
|
167
|
-
return '#FFD700';
|
|
168
|
-
case 'epic':
|
|
169
|
-
return '#AF52DE';
|
|
170
|
-
case 'rare':
|
|
171
|
-
return '#007AFF';
|
|
172
|
-
default:
|
|
173
|
-
return bloomTheme.colors.textTertiary;
|
|
174
|
-
}
|
|
175
|
-
};
|
|
176
|
-
const getAchievementValue = achievement => {
|
|
177
|
-
// Extract numeric value from achievement based on ID and unlocked state
|
|
178
|
-
const valueMap = {
|
|
179
|
-
'first-step': 1,
|
|
180
|
-
'novice': 10,
|
|
181
|
-
'contributor': 50,
|
|
182
|
-
'rising-star': 100,
|
|
183
|
-
'early-adopter': 200,
|
|
184
|
-
'community-hero': 500,
|
|
185
|
-
'legend': 1000,
|
|
186
|
-
'phoenix': 2500,
|
|
187
|
-
'unstoppable': 5000,
|
|
188
|
-
'helper': 10,
|
|
189
|
-
'streak-master': 7
|
|
190
|
-
};
|
|
191
|
-
return valueMap[achievement.id] || null;
|
|
192
|
-
};
|
|
204
|
+
const getRarityColor = rarity => RARITY_TINT[rarity] || colors.textTertiary;
|
|
205
|
+
const getAchievementValue = achievement => ACHIEVEMENT_VALUE[achievement.id] ?? null;
|
|
193
206
|
const renderAchievement = achievement => {
|
|
194
207
|
const rarityColor = getRarityColor(achievement.rarity);
|
|
195
208
|
const isLocked = !achievement.unlocked;
|
|
196
209
|
const achievementValue = getAchievementValue(achievement);
|
|
197
210
|
|
|
198
|
-
// Two-tone colors: darker for borders/shadow, lighter for highlights
|
|
199
|
-
// Use achievement
|
|
200
|
-
const baseColor = isLocked ?
|
|
201
|
-
const darkTone = (0, _colorUtils.darkenColor)(baseColor,
|
|
202
|
-
const lightTone = (0, _colorUtils.lightenColor)(baseColor,
|
|
203
|
-
const mediumTone = baseColor;
|
|
204
|
-
|
|
211
|
+
// Two-tone colors: darker for borders/shadow, lighter for highlights.
|
|
212
|
+
// Use the achievement identity tint for unlocked badges, neutral for locked.
|
|
213
|
+
const baseColor = isLocked ? colors.textTertiary : achievement.iconColor || colors.textTertiary;
|
|
214
|
+
const darkTone = (0, _colorUtils.darkenColor)(baseColor, BADGE_DARKEN);
|
|
215
|
+
const lightTone = (0, _colorUtils.lightenColor)(baseColor, BADGE_LIGHTEN);
|
|
216
|
+
const mediumTone = baseColor;
|
|
205
217
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}],
|
|
218
|
+
className: "bg-fill rounded-radius-20 items-center",
|
|
219
|
+
style: styles.achievementCard,
|
|
209
220
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
210
221
|
style: styles.badgeContainer,
|
|
211
222
|
children: [!isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
212
223
|
style: [styles.badgeGlow, styles.badgeOrganic, {
|
|
213
224
|
backgroundColor: darkTone,
|
|
214
|
-
opacity:
|
|
225
|
+
opacity: BADGE_GLOW_OPACITY
|
|
215
226
|
}]
|
|
216
227
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
217
228
|
style: [styles.badgeMain, styles.badgeOrganic, {
|
|
218
|
-
backgroundColor: isLocked ?
|
|
229
|
+
backgroundColor: isLocked ? colors.border : mediumTone,
|
|
219
230
|
borderColor: darkTone,
|
|
220
|
-
borderWidth:
|
|
231
|
+
borderWidth: BADGE_BORDER_WIDTH,
|
|
221
232
|
shadowColor: darkTone
|
|
222
233
|
}],
|
|
223
234
|
children: [!isLocked && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
@@ -227,7 +238,7 @@ const TrustRewardsScreen = ({
|
|
|
227
238
|
}]
|
|
228
239
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
229
240
|
style: [styles.badgeHighlightAccent, {
|
|
230
|
-
backgroundColor: (0, _colorUtils.lightenColor)(lightTone,
|
|
241
|
+
backgroundColor: (0, _colorUtils.lightenColor)(lightTone, ACCENT_LIGHTEN)
|
|
231
242
|
}]
|
|
232
243
|
})]
|
|
233
244
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
@@ -235,15 +246,15 @@ const TrustRewardsScreen = ({
|
|
|
235
246
|
children: isLocked ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
236
247
|
name: "lock-closed",
|
|
237
248
|
size: 40,
|
|
238
|
-
color:
|
|
249
|
+
color: colors.textTertiary
|
|
239
250
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_vectorIcons.Ionicons, {
|
|
240
251
|
name: achievement.icon,
|
|
241
252
|
size: 40,
|
|
242
|
-
color:
|
|
253
|
+
color: BADGE_ON_COLOR
|
|
243
254
|
})
|
|
244
255
|
}), achievementValue !== null && !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
245
256
|
style: styles.badgeValueContainer,
|
|
246
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
257
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
247
258
|
style: [styles.badgeValueText, {
|
|
248
259
|
color: lightTone,
|
|
249
260
|
textShadowColor: darkTone
|
|
@@ -254,129 +265,114 @@ const TrustRewardsScreen = ({
|
|
|
254
265
|
}), achievement.unlocked && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
255
266
|
style: [styles.rarityBadge, {
|
|
256
267
|
backgroundColor: rarityColor,
|
|
257
|
-
borderColor: (0, _colorUtils.darkenColor)(rarityColor,
|
|
268
|
+
borderColor: (0, _colorUtils.darkenColor)(rarityColor, RARITY_DARKEN)
|
|
258
269
|
}],
|
|
259
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
270
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
260
271
|
style: [styles.rarityText, {
|
|
261
|
-
color:
|
|
272
|
+
color: BADGE_ON_COLOR
|
|
262
273
|
}],
|
|
263
274
|
children: achievement.rarity[0].toUpperCase()
|
|
264
275
|
})
|
|
265
276
|
})]
|
|
266
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}],
|
|
277
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H5, {
|
|
278
|
+
className: "text-text text-center",
|
|
279
|
+
style: isLocked ? styles.lockedDimmed : undefined,
|
|
280
|
+
numberOfLines: 2,
|
|
271
281
|
children: achievement.name
|
|
272
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
opacity: isLocked ? 0.5 : 1
|
|
276
|
-
}],
|
|
282
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
283
|
+
className: "text-text-tertiary text-center text-xs mt-space-2",
|
|
284
|
+
style: isLocked ? styles.lockedDimmed : undefined,
|
|
277
285
|
children: achievement.description
|
|
278
286
|
})]
|
|
279
287
|
}, achievement.id);
|
|
280
288
|
};
|
|
281
289
|
if (!isAuthenticated) {
|
|
282
290
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
283
|
-
|
|
284
|
-
backgroundColor: bloomTheme.colors.background
|
|
285
|
-
}],
|
|
291
|
+
className: "flex-1 bg-bg",
|
|
286
292
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
287
293
|
title: t('trust.rewards.title') || 'Trust Rewards',
|
|
288
294
|
subtitle: t('trust.rewards.subtitle') || 'Unlock special features and recognition',
|
|
289
295
|
onBack: goBack,
|
|
290
296
|
elevation: "subtle"
|
|
291
297
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
292
|
-
|
|
293
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
294
|
-
|
|
295
|
-
color: bloomTheme.colors.text
|
|
296
|
-
}],
|
|
298
|
+
className: "flex-1 items-center justify-center px-screen-margin",
|
|
299
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
300
|
+
className: "text-text text-base text-center",
|
|
297
301
|
children: t('common.status.notSignedIn') || 'Not signed in'
|
|
298
302
|
})
|
|
299
303
|
})]
|
|
300
304
|
});
|
|
301
305
|
}
|
|
306
|
+
const progressRatio = achievements.length > 0 ? unlockedAchievements.length / achievements.length : 0;
|
|
302
307
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
303
|
-
|
|
304
|
-
backgroundColor: bloomTheme.colors.background
|
|
305
|
-
}],
|
|
308
|
+
className: "flex-1 bg-bg",
|
|
306
309
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Header.default, {
|
|
307
310
|
title: t('trust.rewards.title') || 'Trust Rewards',
|
|
308
311
|
subtitle: t('trust.rewards.subtitle') || 'Unlock special features and recognition',
|
|
309
312
|
onBack: goBack,
|
|
310
313
|
elevation: "subtle"
|
|
311
314
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.ScrollView, {
|
|
312
|
-
|
|
315
|
+
className: "flex-1",
|
|
316
|
+
contentContainerClassName: "px-screen-margin pt-space-20 pb-space-40",
|
|
313
317
|
showsVerticalScrollIndicator: false,
|
|
314
318
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
315
|
-
|
|
316
|
-
backgroundColor: colors.card
|
|
317
|
-
}],
|
|
319
|
+
className: "bg-fill rounded-radius-20 p-space-20 mb-space-24",
|
|
318
320
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
319
|
-
|
|
321
|
+
className: "flex-row justify-between items-center mb-space-16",
|
|
320
322
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
321
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
323
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H1, {
|
|
324
|
+
className: "text-text",
|
|
325
|
+
style: {
|
|
326
|
+
color: colors.primary
|
|
327
|
+
},
|
|
325
328
|
children: reputationTotal
|
|
326
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
327
|
-
|
|
328
|
-
color: bloomTheme.colors.textTertiary
|
|
329
|
-
}],
|
|
329
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
330
|
+
className: "text-text-tertiary text-sm",
|
|
330
331
|
children: t('trust.center.balance') || 'Reputation Points'
|
|
331
332
|
})]
|
|
332
333
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
333
|
-
|
|
334
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
334
|
+
className: "items-end",
|
|
335
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H1, {
|
|
336
|
+
className: "text-text",
|
|
337
|
+
style: {
|
|
338
|
+
color: colors.primary
|
|
339
|
+
},
|
|
338
340
|
children: unlockedAchievements.length
|
|
339
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
340
|
-
|
|
341
|
-
color: bloomTheme.colors.textTertiary
|
|
342
|
-
}],
|
|
341
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.Text, {
|
|
342
|
+
className: "text-text-tertiary text-sm",
|
|
343
343
|
children: t('trust.achievements.unlocked') || 'Achievements'
|
|
344
344
|
})]
|
|
345
345
|
})]
|
|
346
346
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
347
|
-
|
|
347
|
+
className: "mt-space-8",
|
|
348
348
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
349
|
+
className: "rounded-radius-full overflow-hidden mb-space-8",
|
|
349
350
|
style: [styles.progressBar, {
|
|
350
|
-
backgroundColor:
|
|
351
|
+
backgroundColor: colors.border
|
|
351
352
|
}],
|
|
352
353
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
354
|
+
className: "rounded-radius-full",
|
|
353
355
|
style: [styles.progressBarFill, {
|
|
354
|
-
width: `${
|
|
355
|
-
backgroundColor:
|
|
356
|
+
width: `${progressRatio * 100}%`,
|
|
357
|
+
backgroundColor: colors.primary
|
|
356
358
|
}]
|
|
357
359
|
})
|
|
358
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(
|
|
359
|
-
|
|
360
|
-
color: bloomTheme.colors.textTertiary
|
|
361
|
-
}],
|
|
360
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_typography.Text, {
|
|
361
|
+
className: "text-text-tertiary text-xs text-right",
|
|
362
362
|
children: [unlockedAchievements.length, " / ", achievements.length]
|
|
363
363
|
})]
|
|
364
364
|
})]
|
|
365
365
|
}), unlockedAchievements.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
366
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
367
|
-
|
|
368
|
-
color: bloomTheme.colors.text
|
|
369
|
-
}],
|
|
366
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
367
|
+
className: "text-text mt-space-8",
|
|
370
368
|
children: t('trust.achievements.unlocked') || 'Unlocked Achievements'
|
|
371
369
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
372
370
|
style: styles.achievementsGrid,
|
|
373
371
|
children: unlockedAchievements.map(achievement => renderAchievement(achievement))
|
|
374
372
|
})]
|
|
375
373
|
}), lockedAchievements.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
376
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
377
|
-
|
|
378
|
-
color: bloomTheme.colors.text
|
|
379
|
-
}],
|
|
374
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_typography.H4, {
|
|
375
|
+
className: "text-text mt-space-8",
|
|
380
376
|
children: t('trust.achievements.locked') || 'Locked Achievements'
|
|
381
377
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
382
378
|
style: styles.achievementsGrid,
|
|
@@ -386,75 +382,17 @@ const TrustRewardsScreen = ({
|
|
|
386
382
|
})]
|
|
387
383
|
});
|
|
388
384
|
};
|
|
385
|
+
|
|
386
|
+
// Measured/positioned layout only — no color, no theme surfaces.
|
|
389
387
|
const styles = _reactNative.StyleSheet.create({
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
},
|
|
393
|
-
contentContainer: {
|
|
394
|
-
paddingHorizontal: 24,
|
|
395
|
-
paddingTop: 20,
|
|
396
|
-
paddingBottom: 40
|
|
397
|
-
},
|
|
398
|
-
centerContent: {
|
|
399
|
-
flex: 1,
|
|
400
|
-
justifyContent: 'center',
|
|
401
|
-
alignItems: 'center'
|
|
402
|
-
},
|
|
403
|
-
message: {
|
|
404
|
-
fontSize: 16,
|
|
405
|
-
textAlign: 'center'
|
|
406
|
-
},
|
|
407
|
-
statsCard: {
|
|
408
|
-
borderRadius: 18,
|
|
409
|
-
padding: 20,
|
|
410
|
-
marginBottom: 24
|
|
411
|
-
},
|
|
412
|
-
statsHeader: {
|
|
413
|
-
flexDirection: 'row',
|
|
414
|
-
justifyContent: 'space-between',
|
|
415
|
-
alignItems: 'center',
|
|
416
|
-
marginBottom: 16
|
|
417
|
-
},
|
|
418
|
-
currentReputation: {
|
|
419
|
-
fontSize: 36,
|
|
420
|
-
fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
|
|
421
|
-
marginBottom: 4
|
|
422
|
-
},
|
|
423
|
-
achievementStats: {
|
|
424
|
-
alignItems: 'flex-end'
|
|
425
|
-
},
|
|
426
|
-
achievementCount: {
|
|
427
|
-
fontSize: 36,
|
|
428
|
-
fontWeight: _reactNative.Platform.OS === 'web' ? 'bold' : undefined,
|
|
429
|
-
marginBottom: 4
|
|
430
|
-
},
|
|
431
|
-
achievementCountLabel: {
|
|
432
|
-
fontSize: 14
|
|
433
|
-
},
|
|
434
|
-
reputationLabel: {
|
|
435
|
-
fontSize: 14
|
|
436
|
-
},
|
|
437
|
-
progressBarContainer: {
|
|
438
|
-
marginTop: 8
|
|
388
|
+
lockedDimmed: {
|
|
389
|
+
opacity: LOCKED_OPACITY
|
|
439
390
|
},
|
|
440
391
|
progressBar: {
|
|
441
|
-
height: 8
|
|
442
|
-
borderRadius: 4,
|
|
443
|
-
overflow: 'hidden',
|
|
444
|
-
marginBottom: 8
|
|
392
|
+
height: 8
|
|
445
393
|
},
|
|
446
394
|
progressBarFill: {
|
|
447
|
-
height: '100%'
|
|
448
|
-
borderRadius: 4
|
|
449
|
-
},
|
|
450
|
-
progressText: {
|
|
451
|
-
fontSize: 12,
|
|
452
|
-
textAlign: 'right'
|
|
453
|
-
},
|
|
454
|
-
sectionTitle: {
|
|
455
|
-
fontSize: 20,
|
|
456
|
-
fontWeight: _reactNative.Platform.OS === 'web' ? '600' : undefined,
|
|
457
|
-
marginTop: 8
|
|
395
|
+
height: '100%'
|
|
458
396
|
},
|
|
459
397
|
achievementsGrid: {
|
|
460
398
|
flexDirection: 'row',
|
|
@@ -466,10 +404,8 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
466
404
|
achievementCard: {
|
|
467
405
|
width: '47%',
|
|
468
406
|
minWidth: 140,
|
|
469
|
-
borderRadius: 20,
|
|
470
407
|
padding: 20,
|
|
471
|
-
paddingTop: 24
|
|
472
|
-
alignItems: 'center'
|
|
408
|
+
paddingTop: 24
|
|
473
409
|
},
|
|
474
410
|
badgeContainer: {
|
|
475
411
|
alignItems: 'center',
|
|
@@ -584,18 +520,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
584
520
|
rarityText: {
|
|
585
521
|
fontSize: 14,
|
|
586
522
|
fontWeight: 'bold'
|
|
587
|
-
},
|
|
588
|
-
achievementName: {
|
|
589
|
-
fontSize: 15,
|
|
590
|
-
fontWeight: '700',
|
|
591
|
-
textAlign: 'center',
|
|
592
|
-
marginBottom: 6,
|
|
593
|
-
marginTop: 4
|
|
594
|
-
},
|
|
595
|
-
achievementDescription: {
|
|
596
|
-
fontSize: 11,
|
|
597
|
-
textAlign: 'center',
|
|
598
|
-
lineHeight: 15
|
|
599
523
|
}
|
|
600
524
|
});
|
|
601
525
|
var _default = exports.default = TrustRewardsScreen;
|