@umituz/react-native-onboarding 3.5.4 → 3.5.6

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.4",
3
+ "version": "3.5.6",
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",
@@ -72,4 +72,4 @@
72
72
  "README.md",
73
73
  "LICENSE"
74
74
  ]
75
- }
75
+ }
@@ -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,16 +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
- variant="primary"
76
- style={{ backgroundColor: colors.buttonBg }}
77
- 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
+ ]}
78
82
  >
79
- {buttonText}
80
- </AtomicButton>
83
+ <AtomicText
84
+ type="labelLarge"
85
+ style={[styles.buttonText, { color: colors.buttonTextColor }]}
86
+ >
87
+ {buttonText}
88
+ </AtomicText>
89
+ </TouchableOpacity>
81
90
 
82
91
  {showProgressText && (
83
92
  <AtomicText
@@ -123,6 +132,18 @@ const styles = StyleSheet.create({
123
132
  marginTop: 12,
124
133
  textAlign: "center",
125
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
+ },
126
147
  });
127
148
 
128
149