Add liquid search & jobs list.

This commit is contained in:
Patrick Fic
2025-10-08 12:53:58 -07:00
parent 091606f1ca
commit 820da94a9f
8 changed files with 208 additions and 27 deletions

24
app/search/_layout.tsx Normal file
View File

@@ -0,0 +1,24 @@
import { Stack, useRouter } from "expo-router";
export default function SearchLayout() {
const router = useRouter();
return (
<Stack>
<Stack.Screen
name="index"
options={{
title: "Search",
headerSearchBarOptions: {
placement: "automatic",
placeholder: "Search",
onChangeText: (event) => {
router.setParams({
globalSearch: event?.nativeEvent?.text,
});
},
},
}}
/>
</Stack>
);
}

12
app/search/index.tsx Normal file
View File

@@ -0,0 +1,12 @@
import { useLocalSearchParams } from "expo-router";
import { ScrollView } from "react-native";
import { Text } from "react-native-paper";
export default function SearchIndex() {
const { globalSearch } = useLocalSearchParams();
return (
<ScrollView>
<Text>Some search results here for: {globalSearch}</Text>
</ScrollView>
);
}