refactor: update module resolution, fix Stepper layout, improve Button prop typing, and update database diagnostic script
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user