@umituz/react-native-subscription 2.2.0 → 2.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umituz/react-native-subscription",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
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",
@@ -58,4 +58,4 @@
58
58
  "README.md",
59
59
  "LICENSE"
60
60
  ]
61
- }
61
+ }
@@ -17,16 +17,11 @@ export const PaywallFeatureItem: React.FC<PaywallFeatureItemProps> = React.memo(
17
17
  ({ icon, text }) => {
18
18
  const tokens = useAppDesignTokens();
19
19
 
20
- // Icon name should already be PascalCase (e.g., "Sparkles", "Image", "Wand")
21
- // If not, convert first letter to uppercase
20
+ // Pass icon name directly to AtomicIcon (which uses Ionicons)
21
+ // Do NOT capitalize, as Ionicons names are lowercase/kebab-case.
22
22
  const iconName = useMemo(() => {
23
- if (!icon) return "Circle";
24
- // If already PascalCase, return as is
25
- if (/^[A-Z]/.test(icon)) {
26
- return icon;
27
- }
28
- // Convert first letter to uppercase
29
- return icon.charAt(0).toUpperCase() + icon.slice(1);
23
+ if (!icon) return "help-circle-outline";
24
+ return icon;
30
25
  }, [icon]);
31
26
 
32
27
  return (