fixed darkmode issues on login and home
This commit is contained in:
parent
f62b49b5cf
commit
8437f474aa
3 changed files with 33 additions and 10 deletions
|
|
@ -5,6 +5,7 @@ import { TextInputEndEditingEventData } from 'react-native/Libraries/Components/
|
|||
|
||||
interface InputProps {
|
||||
label? : string,
|
||||
labelColor?: string,
|
||||
outlined? : boolean,
|
||||
placeholder?: string,
|
||||
leftIcon?: any,
|
||||
|
|
@ -20,6 +21,7 @@ interface InputProps {
|
|||
|
||||
function Input({
|
||||
label,
|
||||
labelColor,
|
||||
outlined,
|
||||
placeholder,
|
||||
leftIcon,
|
||||
|
|
@ -32,13 +34,17 @@ function Input({
|
|||
errorColor,
|
||||
bgColor
|
||||
} : InputProps) {
|
||||
const labelStyle = {
|
||||
...styles.label,
|
||||
color: labelColor ? labelColor : 'black',
|
||||
};
|
||||
const containerBorder = outlined ? styles.outlined : styles.standard
|
||||
if(numLines == undefined){
|
||||
numLines = 1
|
||||
}
|
||||
return (
|
||||
<View style={{padding:10}}>
|
||||
<Text style={styles.label}>{label}</Text>
|
||||
<Text style={labelStyle}>{label}</Text>
|
||||
<View
|
||||
style={[styles.container, containerBorder, {backgroundColor: bgColor ? bgColor : "white"}]}>
|
||||
<View style={{paddingRight:10}}>{leftIcon}</View>
|
||||
|
|
|
|||
Reference in a new issue