Clean up stuff

This commit is contained in:
2025-03-13 14:01:11 -05:00
parent 67179593cb
commit b9802f7b1f
3 changed files with 43 additions and 41 deletions

View File

@ -4,9 +4,6 @@ import ThemedView from '@/components/theme/default/ThemedView';
import { Colors } from '@/constants/Colors';
import { useColorScheme } from '@/hooks/useColorScheme';
const DEFAULT_WIDTH = 320;
const DEFAULT_HEIGHT = 50;
type ThemedTextInputProps = TextInputProps & {
width?: DimensionValue;
height?: DimensionValue;
@ -15,8 +12,8 @@ type ThemedTextInputProps = TextInputProps & {
};
const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
width = DEFAULT_WIDTH,
height = DEFAULT_HEIGHT,
width='90%',
height=50,
fontSize = 16,
containerStyle,
style,
@ -29,9 +26,9 @@ const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
style={[
styles.inputContainer,
{
borderColor: Colors[scheme].accent,
width,
height,
borderColor: Colors[scheme].accent,
},
containerStyle,
]}
@ -43,7 +40,6 @@ const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
color: Colors[scheme].text,
backgroundColor: Colors[scheme].background,
fontSize,
lineHeight: fontSize * 1.5,
},
style,
]}
@ -65,7 +61,6 @@ const styles = StyleSheet.create({
input: {
width: '100%',
height: '100%',
borderRadius: 8,
paddingHorizontal: 15,
},
});