From 0f4ecb53b0cd295e5e24edb97130ee70e8f44ab1 Mon Sep 17 00:00:00 2001 From: Taron Date: Wed, 8 Jan 2025 01:50:42 +0400 Subject: [PATCH] bring back dashboard search --- .../app/(app)/(drawer)/(tabs)/(stack)/maps/index.tsx | 2 ++ .../(app)/(drawer)/(tabs)/(stack)/products/index.tsx | 2 ++ .../app/(app)/(drawer)/(tabs)/(stack)/trips/index.tsx | 2 ++ apps/expo/app/(app)/(drawer)/(tabs)/feed/index.tsx | 2 ++ apps/expo/app/(app)/(drawer)/(tabs)/index/index.tsx | 10 ++++++++++ apps/expo/app/(app)/(drawer)/(tabs)/packs/index.tsx | 2 ++ 6 files changed, 20 insertions(+) diff --git a/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/maps/index.tsx b/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/maps/index.tsx index 2130f4f28..4bc5a26f4 100644 --- a/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/maps/index.tsx +++ b/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/maps/index.tsx @@ -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: { diff --git a/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/products/index.tsx b/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/products/index.tsx index d4ebfa05f..a89dd6bdc 100644 --- a/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/products/index.tsx +++ b/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/products/index.tsx @@ -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), }, diff --git a/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/trips/index.tsx b/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/trips/index.tsx index 8794344d0..76b9737ca 100644 --- a/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/trips/index.tsx +++ b/apps/expo/app/(app)/(drawer)/(tabs)/(stack)/trips/index.tsx @@ -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 diff --git a/apps/expo/app/(app)/(drawer)/(tabs)/feed/index.tsx b/apps/expo/app/(app)/(drawer)/(tabs)/feed/index.tsx index 256b23528..71c53177c 100644 --- a/apps/expo/app/(app)/(drawer)/(tabs)/feed/index.tsx +++ b/apps/expo/app/(app)/(drawer)/(tabs)/feed/index.tsx @@ -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), }, diff --git a/apps/expo/app/(app)/(drawer)/(tabs)/index/index.tsx b/apps/expo/app/(app)/(drawer)/(tabs)/index/index.tsx index 73f9352e1..446d957db 100644 --- a/apps/expo/app/(app)/(drawer)/(tabs)/index/index.tsx +++ b/apps/expo/app/(app)/(drawer)/(tabs)/index/index.tsx @@ -36,6 +36,16 @@ export default function HomeScreen() { setSearchQuery(e.nativeEvent.text), + } + : undefined, }} /> {connectionStatus === 'connected' && ( diff --git a/apps/expo/app/(app)/(drawer)/(tabs)/packs/index.tsx b/apps/expo/app/(app)/(drawer)/(tabs)/packs/index.tsx index e00f6b1ae..a1993c17d 100644 --- a/apps/expo/app/(app)/(drawer)/(tabs)/packs/index.tsx +++ b/apps/expo/app/(app)/(drawer)/(tabs)/packs/index.tsx @@ -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), },