Finish cleaning up theme stuff
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user