Finish cleaning up theme stuff

This commit is contained in:
2025-03-04 23:58:53 -06:00
parent 4775917db0
commit 4e93893319
14 changed files with 49 additions and 90 deletions

View File

@@ -1,7 +1,8 @@
import React from 'react';
import { StyleSheet, ViewProps, View, DimensionValue } from 'react-native';
import { StyleSheet, ViewProps, DimensionValue } from 'react-native';
import ThemedView from '@/components/theme/default/ThemedView';
import ThemedTextInput from '@/components/theme/inputs/ThemedTextInput';
import { Ionicons } from '@expo/vector-icons';
import { ThemedTextInput } from '@/components/theme';
import { Colors } from '@/constants/Colors';
import { useColorScheme } from '@/hooks/useColorScheme';
@@ -23,15 +24,10 @@ const ThemedSearchBar: React.FC<ThemedSearchBarProps> = ({
...restProps
}) => {
const scheme = useColorScheme() ?? 'dark';
return (
<View style={[styles.container, { width }, style]} {...restProps}>
<Ionicons
name="search"
size={20}
color={Colors[scheme].text}
style={styles.icon}
/>
<ThemedView style={[styles.container, { width }, style]} {...restProps}>
<Ionicons name='search' size={20} color={Colors[scheme].text} style={styles.icon} />
<ThemedTextInput
placeholder={placeholder}
value={value}
@@ -40,7 +36,7 @@ const ThemedSearchBar: React.FC<ThemedSearchBarProps> = ({
width={width}
style={styles.input}
/>
</View>
</ThemedView>
);
};