@umituz/react-native-subscription 2.11.13 → 2.11.15

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-subscription",
3
- "version": "2.11.13",
3
+ "version": "2.11.15",
4
4
  "description": "Complete subscription management with RevenueCat, paywall UI, and credits system for React Native apps",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { StyleSheet } from "react-native";
2
+ import { View, StyleSheet } from "react-native";
3
3
  import { AtomicText, useAppDesignTokens } from "@umituz/react-native-design-system";
4
4
  import { LinearGradient } from "expo-linear-gradient";
5
5
 
@@ -15,19 +15,21 @@ export const BestValueBadge: React.FC<BestValueBadgeProps> = React.memo(
15
15
  if (!visible) return null;
16
16
 
17
17
  return (
18
- <LinearGradient
19
- colors={[tokens.colors.secondary, tokens.colors.primary]}
20
- start={{ x: 0, y: 0 }}
21
- end={{ x: 1, y: 1 }}
22
- style={styles.badge}
23
- >
24
- <AtomicText
25
- type="labelSmall"
26
- style={{ color: tokens.colors.onPrimary, fontWeight: "800", textTransform: "uppercase", fontSize: 10 }}
18
+ <View style={styles.badgeContainer}>
19
+ <LinearGradient
20
+ colors={[tokens.colors.secondary, tokens.colors.primary]}
21
+ start={{ x: 0, y: 0 }}
22
+ end={{ x: 1, y: 1 }}
23
+ style={styles.badge}
27
24
  >
28
- {text}
29
- </AtomicText>
30
- </LinearGradient>
25
+ <AtomicText
26
+ type="labelSmall"
27
+ style={{ color: tokens.colors.onPrimary, fontWeight: "800", textTransform: "uppercase", fontSize: 10 }}
28
+ >
29
+ {text}
30
+ </AtomicText>
31
+ </LinearGradient>
32
+ </View>
31
33
  );
32
34
  }
33
35
  );
@@ -35,14 +37,17 @@ export const BestValueBadge: React.FC<BestValueBadgeProps> = React.memo(
35
37
  BestValueBadge.displayName = "BestValueBadge";
36
38
 
37
39
  const styles = StyleSheet.create({
38
- badge: {
40
+ badgeContainer: {
39
41
  position: "absolute",
40
42
  top: -12,
41
43
  right: 16,
44
+ zIndex: 1,
45
+ alignSelf: "flex-end",
46
+ },
47
+ badge: {
42
48
  paddingHorizontal: 16,
43
49
  paddingVertical: 6,
44
50
  borderRadius: 16,
45
- zIndex: 1,
46
51
  alignItems: "center",
47
52
  justifyContent: "center",
48
53
  },
@@ -38,9 +38,7 @@ export const AccordionPlanCard: React.FC<AccordionPlanCardProps> = React.memo(
38
38
  : null;
39
39
 
40
40
  const title = pkg.product.title || t(`paywall.period.${periodLabel}`);
41
- const displayPrice = isYearly && monthlyEquivalent
42
- ? `${monthlyEquivalent}/mo`
43
- : price;
41
+ const displayPrice = price;
44
42
 
45
43
  const handleHeaderPress = useCallback(() => {
46
44
  onSelect();
@@ -93,7 +91,6 @@ AccordionPlanCard.displayName = "AccordionPlanCard";
93
91
  const styles = StyleSheet.create({
94
92
  container: {
95
93
  borderRadius: 16,
96
- overflow: "hidden",
97
94
  marginBottom: 12,
98
95
  },
99
96
  });