@umituz/react-native-subscription 2.2.27 → 2.2.28

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.27",
3
+ "version": "2.2.28",
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",
@@ -5,7 +5,6 @@
5
5
 
6
6
  import React, { useEffect } from "react";
7
7
  import { View, Modal, StyleSheet, TouchableOpacity } from "react-native";
8
- import { SafeAreaView } from "react-native-safe-area-context";
9
8
  import { useAppDesignTokens } from "@umituz/react-native-design-system-theme";
10
9
  import { useLocalization } from "@umituz/react-native-localization";
11
10
  import type { PurchasesPackage } from "react-native-purchases";
@@ -106,7 +105,7 @@ export const PaywallModal: React.FC<PaywallModalProps> = React.memo(
106
105
  <View
107
106
  style={[styles.content, { backgroundColor: tokens.colors.surface }]}
108
107
  >
109
- <SafeAreaView edges={["top"]} style={styles.safeArea}>
108
+ <View style={styles.contentInner}>
110
109
  <PaywallHeader
111
110
  title={displayTitle}
112
111
  subtitle={displaySubtitle}
@@ -148,7 +147,7 @@ export const PaywallModal: React.FC<PaywallModalProps> = React.memo(
148
147
  restoreButtonText={restoreButtonText}
149
148
  />
150
149
  )}
151
- </SafeAreaView>
150
+ </View>
152
151
  </View>
153
152
  </View>
154
153
  </Modal>
@@ -178,7 +177,9 @@ const styles = StyleSheet.create({
178
177
  borderWidth: 1,
179
178
  borderColor: "rgba(255, 255, 255, 0.08)",
180
179
  },
181
- safeArea: {
180
+ contentInner: {
182
181
  flex: 1,
182
+ paddingTop: 20,
183
+ paddingBottom: 20,
183
184
  },
184
185
  });
@@ -5,7 +5,6 @@
5
5
 
6
6
  import React from "react";
7
7
  import { View, StyleSheet, ScrollView } from "react-native";
8
- import { SafeAreaView } from "react-native-safe-area-context";
9
8
  import { useAppDesignTokens } from "@umituz/react-native-design-system-theme";
10
9
  import type { PurchasesPackage } from "react-native-purchases";
11
10
 
@@ -79,12 +78,12 @@ export const SubscriptionModal: React.FC<SubscriptionModalProps> = React.memo((p
79
78
 
80
79
  if (!visible) return null;
81
80
 
82
- const ContentWrapper = variant === "fullscreen" ? SafeAreaView : View;
83
- const wrapperProps = variant === "fullscreen" ? { edges: ["top", "bottom"] as const } : {};
81
+ const ContentWrapper = View;
82
+ const containerStyle = variant === "fullscreen" ? styles.fullscreenContainer : styles.container;
84
83
 
85
84
  return (
86
85
  <SubscriptionModalOverlay visible={visible} onClose={onClose} variant={variant}>
87
- <ContentWrapper {...wrapperProps} style={styles.container}>
86
+ <ContentWrapper style={containerStyle}>
88
87
  <SubscriptionModalHeader title={title} subtitle={subtitle} onClose={onClose} />
89
88
 
90
89
  <ScrollView
@@ -137,6 +136,12 @@ const styles = StyleSheet.create({
137
136
  flex: 1,
138
137
  width: "100%",
139
138
  },
139
+ fullscreenContainer: {
140
+ flex: 1,
141
+ width: "100%",
142
+ paddingTop: 20,
143
+ paddingBottom: 20,
144
+ },
140
145
  scrollView: {
141
146
  flex: 1,
142
147
  width: "100%",