refactor: update module resolution, fix Stepper layout, improve Button prop typing, and update database diagnostic script

This commit is contained in:
2026-05-05 17:03:24 +01:00
parent bdd9722c83
commit 34d4fb6033
4 changed files with 20 additions and 11 deletions

View File

@@ -1,5 +1,5 @@
import React from 'react';
import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, ViewStyle, TextStyle } from 'react-native';
import { TouchableOpacity, Text, StyleSheet, ActivityIndicator, ViewStyle, TextStyle, StyleProp } from 'react-native';
type Props = {
children: React.ReactNode;
@@ -8,8 +8,8 @@ type Props = {
size?: 'sm' | 'md' | 'lg';
disabled?: boolean;
loading?: boolean;
style?: ViewStyle;
textStyle?: TextStyle;
style?: StyleProp<ViewStyle>;
textStyle?: StyleProp<TextStyle>;
};
export const Button = ({ children, onPress, variant = 'solid', size = 'md', disabled, loading, style, textStyle }: Props) => {

View File

@@ -136,8 +136,6 @@ const styles = StyleSheet.create({
lineBackground: {
position: 'absolute',
top: 15, // Half of circle height (30/2)
left: 40, // Center of first circle (20 horizontal padding + 30 step container width / 2) -> wait
// Let's use a more robust calculation
left: 50, // approx center of first circle (20 padding + 60/2)
right: 50, // approx center of last circle
height: 2,