@umituz/react-native-settings 4.21.18 → 4.21.20

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 (41) hide show
  1. package/package.json +1 -1
  2. package/src/domains/about/presentation/components/AboutContent.tsx +3 -4
  3. package/src/domains/about/presentation/components/AboutHeader.tsx +7 -14
  4. package/src/domains/about/presentation/components/AboutSection.tsx +2 -2
  5. package/src/domains/about/presentation/components/AboutSettingItem.tsx +16 -16
  6. package/src/domains/appearance/presentation/components/AppearanceSection.tsx +2 -2
  7. package/src/domains/appearance/presentation/screens/AppearanceScreen.tsx +3 -4
  8. package/src/domains/faqs/presentation/components/FAQEmptyState.tsx +2 -2
  9. package/src/domains/gamification/components/AchievementCard.tsx +26 -19
  10. package/src/domains/gamification/components/AchievementItem.tsx +27 -25
  11. package/src/domains/gamification/components/AchievementToast.tsx +16 -12
  12. package/src/domains/gamification/components/GamificationScreen/AchievementsList.tsx +6 -5
  13. package/src/domains/gamification/components/GamificationScreen/Header.tsx +4 -3
  14. package/src/domains/gamification/components/GamificationScreen/StatsGrid.tsx +4 -3
  15. package/src/domains/gamification/components/GamificationScreen/index.tsx +38 -28
  16. package/src/domains/gamification/components/LevelProgress.tsx +25 -18
  17. package/src/domains/gamification/components/PointsBadge.tsx +13 -9
  18. package/src/domains/gamification/components/StatsCard.tsx +20 -14
  19. package/src/domains/gamification/components/StreakDisplay.tsx +28 -22
  20. package/src/domains/legal/presentation/components/LegalSection.tsx +2 -2
  21. package/src/domains/notifications/presentation/components/NotificationsSection.tsx +2 -4
  22. package/src/domains/notifications/presentation/screens/NotificationSettingsScreen.tsx +3 -4
  23. package/src/domains/rating/presentation/components/StarRating.tsx +2 -2
  24. package/src/domains/video-tutorials/presentation/components/VideoTutorialCard.tsx +35 -127
  25. package/src/domains/video-tutorials/presentation/screens/VideoTutorialsScreen.tsx +88 -153
  26. package/src/presentation/components/SettingsItemCard.tsx +3 -22
  27. package/src/presentation/navigation/SettingsStackNavigator.tsx +112 -100
  28. package/src/presentation/screens/SettingsScreen.tsx +6 -2
  29. package/src/presentation/screens/components/GamificationSettingsItem.tsx +48 -0
  30. package/src/presentation/screens/components/SettingsContent.tsx +17 -41
  31. package/src/presentation/screens/components/SettingsHeader.tsx +2 -3
  32. package/src/presentation/screens/components/SubscriptionSettingsItem.tsx +30 -0
  33. package/src/presentation/screens/components/WalletSettingsItem.tsx +28 -0
  34. package/src/presentation/screens/components/sections/FeatureSettingsSection.tsx +2 -2
  35. package/src/presentation/screens/components/sections/ProfileSectionLoader.tsx +2 -2
  36. package/src/presentation/screens/components/sections/SupportSettingsSection.tsx +2 -2
  37. package/src/presentation/screens/hooks/useFeatureDetection.ts +2 -0
  38. package/src/presentation/screens/types/SettingsConfig.ts +7 -0
  39. package/src/presentation/screens/types/UserFeatureConfig.ts +21 -0
  40. package/src/presentation/screens/types/index.ts +2 -0
  41. package/src/presentation/screens/utils/normalizeConfig.ts +6 -0
@@ -17,6 +17,7 @@ import type {
17
17
  FAQConfig,
18
18
  SubscriptionConfig,
19
19
  WalletConfig,
20
+ GamificationItemConfig,
20
21
  SettingsConfig,
21
22
  } from "../types";
22
23
 
@@ -69,6 +70,10 @@ export interface NormalizedConfig {
69
70
  enabled: boolean;
70
71
  config?: WalletConfig;
71
72
  };
73
+ gamification: {
74
+ enabled: boolean;
75
+ config?: GamificationItemConfig;
76
+ };
72
77
  }
73
78
 
74
79
  /**
@@ -115,5 +120,6 @@ export function normalizeSettingsConfig(
115
120
  faqs: normalizeConfigValue(config?.faqs, false),
116
121
  subscription: normalizeConfigValue(config?.subscription, false),
117
122
  wallet: normalizeConfigValue(config?.wallet, false),
123
+ gamification: normalizeConfigValue(config?.gamification, false),
118
124
  };
119
125
  }