@umituz/react-native-onboarding 3.5.5 → 3.5.7

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-onboarding",
3
- "version": "3.5.5",
3
+ "version": "3.5.7",
4
4
  "description": "Advanced onboarding flow for React Native apps with personalization questions, theme-aware colors, animations, and customizable slides. SOLID, DRY, KISS principles applied.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
- import { View, StyleSheet } from "react-native";
2
+ import { View, StyleSheet, TouchableOpacity } from "react-native";
3
3
  import { useSafeAreaInsets } from "react-native-safe-area-context";
4
4
  import { useLocalization } from "@umituz/react-native-localization";
5
- import { AtomicButton, AtomicText } from "@umituz/react-native-design-system";
5
+ import { AtomicText } from "@umituz/react-native-design-system";
6
6
  import { useOnboardingTheme } from "../providers/OnboardingThemeProvider";
7
7
 
8
8
  export interface OnboardingFooterProps {
@@ -68,15 +68,25 @@ export const OnboardingFooter = ({
68
68
  </View>
69
69
  )}
70
70
 
71
- <AtomicButton
71
+ <TouchableOpacity
72
72
  onPress={onNext}
73
73
  disabled={disabled}
74
- fullWidth
75
- style={{ backgroundColor: colors.buttonBg }}
76
- textStyle={{ color: colors.buttonTextColor }}
74
+ activeOpacity={0.7}
75
+ style={[
76
+ styles.button,
77
+ {
78
+ backgroundColor: colors.buttonBg,
79
+ opacity: disabled ? 0.5 : 1,
80
+ },
81
+ ]}
77
82
  >
78
- {buttonText}
79
- </AtomicButton>
83
+ <AtomicText
84
+ type="labelLarge"
85
+ style={[styles.buttonText, { color: colors.buttonTextColor }]}
86
+ >
87
+ {buttonText}
88
+ </AtomicText>
89
+ </TouchableOpacity>
80
90
 
81
91
  {showProgressText && (
82
92
  <AtomicText
@@ -122,6 +132,18 @@ const styles = StyleSheet.create({
122
132
  marginTop: 12,
123
133
  textAlign: "center",
124
134
  },
135
+ button: {
136
+ width: "100%",
137
+ minHeight: 52,
138
+ borderRadius: 16,
139
+ alignItems: "center",
140
+ justifyContent: "center",
141
+ paddingVertical: 16,
142
+ paddingHorizontal: 24,
143
+ },
144
+ buttonText: {
145
+ fontWeight: "700",
146
+ },
125
147
  });
126
148
 
127
149