fixed and broke the theme again

This commit is contained in:
Walcher 2023-12-08 16:52:24 +01:00
parent 424407faf3
commit f62b49b5cf
5 changed files with 23 additions and 24 deletions

View file

@ -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
},