Add changes to themed components made from tt
This commit is contained in:
		
							
								
								
									
										0
									
								
								assets/fonts/SpaceMono-Regular.ttf
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								assets/fonts/SpaceMono-Regular.ttf
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@@ -10,12 +10,14 @@ const DEFAULT_HEIGHT = 50;
 | 
				
			|||||||
type ThemedTextInputProps = TextInputProps & {
 | 
					type ThemedTextInputProps = TextInputProps & {
 | 
				
			||||||
  width?: DimensionValue;
 | 
					  width?: DimensionValue;
 | 
				
			||||||
  height?: DimensionValue;
 | 
					  height?: DimensionValue;
 | 
				
			||||||
 | 
					  fontSize?: number;
 | 
				
			||||||
  containerStyle?: object;
 | 
					  containerStyle?: object;
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
 | 
					const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
 | 
				
			||||||
  width = DEFAULT_WIDTH,
 | 
					  width = DEFAULT_WIDTH,
 | 
				
			||||||
  height = DEFAULT_HEIGHT,
 | 
					  height = DEFAULT_HEIGHT,
 | 
				
			||||||
 | 
					  fontSize = 16,
 | 
				
			||||||
  containerStyle,
 | 
					  containerStyle,
 | 
				
			||||||
  style,
 | 
					  style,
 | 
				
			||||||
  ...restProps
 | 
					  ...restProps
 | 
				
			||||||
@@ -23,13 +25,21 @@ const ThemedTextInput: React.FC<ThemedTextInputProps> = ({
 | 
				
			|||||||
  const scheme = useColorScheme() ?? 'dark';
 | 
					  const scheme = useColorScheme() ?? 'dark';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <ThemedView style={[styles.inputContainer, { width, height }, containerStyle]}>
 | 
					    <ThemedView style={[
 | 
				
			||||||
 | 
					      styles.inputContainer,
 | 
				
			||||||
 | 
					      {
 | 
				
			||||||
 | 
					        width,
 | 
				
			||||||
 | 
					        height,
 | 
				
			||||||
 | 
					        borderColor: Colors[scheme].subtle },
 | 
				
			||||||
 | 
					        containerStyle,
 | 
				
			||||||
 | 
					    ]}>
 | 
				
			||||||
      <TextInput
 | 
					      <TextInput
 | 
				
			||||||
        style={[
 | 
					        style={[
 | 
				
			||||||
          styles.input,
 | 
					          styles.input,
 | 
				
			||||||
          {
 | 
					          {
 | 
				
			||||||
            color: Colors[scheme].text,
 | 
					            color: Colors[scheme].text,
 | 
				
			||||||
            backgroundColor: Colors[scheme].background,
 | 
					            backgroundColor: Colors[scheme].background,
 | 
				
			||||||
 | 
					            fontSize,
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
          style,
 | 
					          style,
 | 
				
			||||||
        ]}
 | 
					        ]}
 | 
				
			||||||
@@ -46,12 +56,12 @@ const styles = StyleSheet.create({
 | 
				
			|||||||
  inputContainer: {
 | 
					  inputContainer: {
 | 
				
			||||||
    padding: 3,
 | 
					    padding: 3,
 | 
				
			||||||
    borderRadius: 10,
 | 
					    borderRadius: 10,
 | 
				
			||||||
 | 
					    borderWidth: 1,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
  input: {
 | 
					  input: {
 | 
				
			||||||
    width: '100%',
 | 
					    width: '100%',
 | 
				
			||||||
    height: '100%',
 | 
					    height: '100%',
 | 
				
			||||||
    borderRadius: 8,
 | 
					    borderRadius: 8,
 | 
				
			||||||
    paddingHorizontal: 15,
 | 
					    paddingHorizontal: 15,
 | 
				
			||||||
    fontSize: 16,
 | 
					 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										0
									
								
								scripts/reset-project.js
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										0
									
								
								scripts/reset-project.js
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
		Reference in New Issue
	
	Block a user