fixed and broke the theme again
This commit is contained in:
parent
424407faf3
commit
f62b49b5cf
5 changed files with 23 additions and 24 deletions
|
|
@ -6,12 +6,11 @@ import { SIZES } from '../../../constants/theme';
|
|||
|
||||
type SearchBarProps = {placeholder: string} & ViewProps
|
||||
|
||||
|
||||
|
||||
export default function SearchBar(props: SearchBarProps) {
|
||||
const [isActive, setIsactive] = React.useState(false);
|
||||
|
||||
const backgroundColor = useThemeColor("backgroundColor");
|
||||
const textColor = useThemeColor("interactiveText")
|
||||
const backgroundColor = useThemeColor("containerColor");
|
||||
const handleChange = (text:string) : void => {
|
||||
if(text !== ""){
|
||||
if(!isActive){
|
||||
|
|
@ -46,7 +45,7 @@ const styles = StyleSheet.create({
|
|||
justifyContent: "center",
|
||||
alignItems: "center",
|
||||
height: 40,
|
||||
backgroundColor: "red", //tochange
|
||||
backgroundColor: backgroundColor,
|
||||
borderRadius: 10,
|
||||
paddingHorizontal: 10
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue