Clean up stuff
This commit is contained in:
@ -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,
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user