Skip to content

Commit

Permalink
Merge pull request #1175 from andrew-bierman/Fix-native-search-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-bierman authored Aug 21, 2024
2 parents 00b99db + 4a38282 commit 3dc7712
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
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

0 comments on commit 3dc7712

Please sign in to comment.