Skip to content

Commit

Permalink
Merge pull request #1411 from andrew-bierman/fix/dashboard-search-ios
Browse files Browse the repository at this point in the history
bring back dashboard search
  • Loading branch information
taronaleksanian authored Jan 8, 2025
2 parents 6193888 + 0f4ecb5 commit b072498
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/expo/app/(app)/(drawer)/(tabs)/(stack)/maps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default function MapsScreen() {
hideWhenScrolling: false,
headerIconColor: currentTheme.colors.text,
inputType: 'text',
textColor:
Platform.OS === 'android' ? currentTheme.colors.text : undefined,
onChangeText: (e) => setSearchQuery(e.nativeEvent.text),
},
headerStyle: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export default function ProductsPage() {
headerIconColor: currentTheme.colors.text,
hideWhenScrolling: false,
inputType: 'text',
textColor:
Platform.OS === 'android' ? currentTheme.colors.text : undefined,
onChangeText: (e) => setSearchQuery(e.nativeEvent.text),
},

Expand Down
2 changes: 2 additions & 0 deletions apps/expo/app/(app)/(drawer)/(tabs)/(stack)/trips/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export default function FeedNav() {
headerIconColor: currentTheme.colors.text,
hideWhenScrolling: false,
inputType: 'text',
textColor:
Platform.OS === 'android' ? currentTheme.colors.text : undefined,
onChangeText: (e) => setSearchQuery(e.nativeEvent.text),
},
// https://reactnavigation.org/docs/headers#adjusting-header-styles
Expand Down
2 changes: 2 additions & 0 deletions apps/expo/app/(app)/(drawer)/(tabs)/feed/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ export default function FeedNav() {

hideWhenScrolling: false,
inputType: 'text',
textColor:
Platform.OS === 'android' ? currentTheme.colors.text : undefined,
onChangeText: (e) => setSearchQuery(e.nativeEvent.text),
},

Expand Down
10 changes: 10 additions & 0 deletions apps/expo/app/(app)/(drawer)/(tabs)/index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ export default function HomeScreen() {
<Stack.Screen
options={{
title: 'Home',
headerSearchBarOptions:
Platform.OS === 'ios'
? {
placeholder: 'Search maps',
hideWhenScrolling: false,
headerIconColor: currentTheme.colors.text,
inputType: 'text',
onChangeText: (e) => setSearchQuery(e.nativeEvent.text),
}
: undefined,
}}
/>
{connectionStatus === 'connected' && (
Expand Down
2 changes: 2 additions & 0 deletions apps/expo/app/(app)/(drawer)/(tabs)/packs/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export default function Packs() {
headerIconColor: currentTheme.colors.text,
hideWhenScrolling: false,
inputType: 'text',
textColor:
Platform.OS === 'android' ? currentTheme.colors.text : undefined,
onChangeText: (e) => setSearchQuery(e.nativeEvent.text),
},

Expand Down

0 comments on commit b072498

Please sign in to comment.