@umituz/react-native-settings 4.20.7 → 4.20.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-settings",
3
- "version": "4.20.7",
3
+ "version": "4.20.8",
4
4
  "description": "Complete settings hub for React Native apps - consolidated package with settings, about, legal, appearance, feedback, FAQs, and rating",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,9 +1,7 @@
1
1
  import React from "react";
2
- import { View } from "react-native";
3
2
  import {
4
3
  ListItem,
5
4
  AtomicBadge,
6
- useAppDesignTokens,
7
5
  } from "@umituz/react-native-design-system";
8
6
  import { useLocalization } from "@umituz/react-native-localization";
9
7
  import { SettingsSection } from "../../../components/SettingsSection";
@@ -17,7 +15,6 @@ export const SubscriptionSettingsSection: React.FC<SubscriptionSettingsSectionPr
17
15
  config,
18
16
  }) => {
19
17
  const { t } = useLocalization();
20
- const tokens = useAppDesignTokens();
21
18
 
22
19
  if (!config) return null;
23
20
 
@@ -25,24 +22,9 @@ export const SubscriptionSettingsSection: React.FC<SubscriptionSettingsSectionPr
25
22
  <SettingsSection title={config.sectionTitle || t("settings.sections.subscription")}>
26
23
  <ListItem
27
24
  title={config.title || t("settings.subscription.title")}
28
- description={config.description || t("settings.subscription.description")}
25
+ subtitle={config.description || t("settings.subscription.description")}
29
26
  leftIcon={config.icon || "star"}
30
27
  onPress={config.onPress}
31
- rightElement={
32
- config.isPremium ? (
33
- <AtomicBadge
34
- label={t("common.premium")}
35
- variant="success"
36
- size="small"
37
- />
38
- ) : (
39
- <AtomicBadge
40
- label={t("common.free")}
41
- variant="warning"
42
- size="small"
43
- />
44
- )
45
- }
46
28
  />
47
29
  </SettingsSection>
48
30
  );
@@ -15,6 +15,8 @@ export type {
15
15
  FeedbackConfig,
16
16
  RatingConfig,
17
17
  FAQConfig,
18
+ SubscriptionConfig,
19
+ CloudSyncConfig,
18
20
  } from "./FeatureConfig";
19
21
  export type { SettingsConfig } from "./SettingsConfig";
20
22
  export type { CustomSettingsSection } from "./CustomSection";