@umituz/react-native-subscription 2.2.20 → 2.2.21

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.20",
3
+ "version": "2.2.21",
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",
@@ -34,7 +34,7 @@ export const PaywallFeatureItem: React.FC<PaywallFeatureItemProps> = React.memo(
34
34
  />
35
35
  <AtomicText
36
36
  type="bodyMedium"
37
- style={[styles.featureText, { color: tokens.colors.text }]}
37
+ style={[styles.featureText, { color: tokens.colors.textPrimary }]}
38
38
  >
39
39
  {text}
40
40
  </AtomicText>
@@ -92,25 +92,28 @@ const styles = StyleSheet.create({
92
92
  container: {
93
93
  alignItems: "center",
94
94
  paddingHorizontal: 24,
95
- paddingBottom: 20,
95
+ paddingBottom: 32, // Increased for home indicator safety
96
96
  paddingTop: 8,
97
+ width: "100%",
97
98
  },
98
99
  termsText: {
99
100
  textAlign: "center",
100
101
  fontSize: 11,
101
102
  lineHeight: 16,
102
- marginBottom: 8,
103
+ marginBottom: 10,
103
104
  },
104
105
  legalLinksContainer: {
105
106
  flexDirection: "row",
106
107
  alignItems: "center",
108
+ justifyContent: "center",
107
109
  marginTop: 4,
110
+ flexWrap: "wrap",
108
111
  },
109
112
  linkText: {
110
113
  textDecorationLine: "underline",
111
114
  fontSize: 12,
112
115
  },
113
116
  separator: {
114
- marginHorizontal: 4,
117
+ marginHorizontal: 8,
115
118
  },
116
119
  });
@@ -222,13 +222,14 @@ const styles = StyleSheet.create({
222
222
  backgroundColor: "rgba(0, 0, 0, 0.5)",
223
223
  },
224
224
 
225
- // Bottom-sheet container - KEY FIX: explicit max height calculation
225
+ // Bottom-sheet container
226
226
  bottomSheetContainer: {
227
- borderTopLeftRadius: 24,
228
- borderTopRightRadius: 24,
229
- maxHeight: SCREEN_HEIGHT * 0.85,
230
- paddingTop: 16,
231
- paddingBottom: 24,
227
+ borderTopLeftRadius: 32,
228
+ borderTopRightRadius: 32,
229
+ maxHeight: SCREEN_HEIGHT * 0.9,
230
+ minHeight: 400,
231
+ width: "100%",
232
+ paddingBottom: 0, // Footer has its own padding
232
233
  },
233
234
 
234
235
  // Fullscreen container
@@ -241,11 +242,12 @@ const styles = StyleSheet.create({
241
242
  header: {
242
243
  alignItems: "center",
243
244
  paddingHorizontal: 24,
245
+ paddingTop: 8,
244
246
  paddingBottom: 16,
245
247
  },
246
248
  closeButton: {
247
249
  position: "absolute",
248
- top: 0,
250
+ top: 8,
249
251
  right: 16,
250
252
  padding: 8,
251
253
  zIndex: 1,
@@ -260,23 +262,25 @@ const styles = StyleSheet.create({
260
262
  },
261
263
  subtitle: {
262
264
  textAlign: "center",
265
+ paddingHorizontal: 20,
263
266
  },
264
267
 
265
268
  // ScrollView - expands to fill available space, shrinks if needed
266
269
  scrollView: {
267
270
  flex: 1,
268
- minHeight: 100,
269
271
  },
270
272
  scrollContent: {
271
273
  paddingHorizontal: 24,
272
- paddingBottom: 16,
274
+ paddingBottom: 24,
273
275
  flexGrow: 1,
274
276
  },
275
277
 
276
278
  // Features section
277
279
  featuresSection: {
278
- borderRadius: 16,
279
- padding: 16,
280
- marginTop: 16,
280
+ borderRadius: 20,
281
+ padding: 20,
282
+ marginTop: 8,
283
+ borderWidth: 1,
284
+ borderColor: "rgba(255, 255, 255, 0.05)",
281
285
  },
282
286
  });