Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix native search theme #1175

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions apps/expo/app/(app)/(drawer)/(tabs)/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function Search() {
<RStack
style={{
paddingTop: 24,
backgroundColor: currentTheme.colors.white,
backgroundColor: currentTheme.colors.background,
}}
>
{Platform.OS === 'web' && (
Expand All @@ -80,7 +80,7 @@ export default function Search() {
// https://reactnavigation.org/docs/headers#replacing-the-title-with-a-custom-component
}}
/>
<View style={{ width: '100%' }}>
<View style={{ width: '100%', height: '100%' }}>
<PlacesAutocomplete
onSelect={handleSearchSelect}
placeholder="Search for a place"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ const PlaceItem = ({ item }: any) => {
const { currentTheme } = useTheme();
return (
<RStack style={{ flexDirection: 'row' }}>
<RText fontWeight="400">{item.properties.name}</RText>
<RText fontWeight="400" color="red">
{item.properties.name}
</RText>
<RText opacity={100} textTransform={'capitalize'}>
{item.properties.osm_value}
</RText>
Expand Down
8 changes: 4 additions & 4 deletions packages/app/components/SearchInput/SearchInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,20 @@ export const SearchInput = forwardRef<TextInput, SearchInputProps>(
minWidth="100%"
alignSelf="center"
position="relative"
backgroundColor={currentTheme.colors.white}
backgroundColor={currentTheme.colors.background}
borderRadius={8}
>
<RStack
flexDirection="row"
alignItems="center"
borderBottomWidth={1}
borderColor={currentTheme.colors.background}
borderColor={currentTheme.colors.border}
padding={4}
>
<MaterialCommunityIcons
name="magnify"
size={24}
color={currentTheme.colors.background}
color={currentTheme.colors.text}
style={{ marginLeft: 10 }}
/>
<RInput
Expand Down Expand Up @@ -216,7 +216,7 @@ export const SearchInput = forwardRef<TextInput, SearchInputProps>(
<MaterialIcons
name="close"
size={24}
color={currentTheme.colors.background}
color={currentTheme.colors.text}
/>
</RIconButton>
)}
Expand Down
Loading