Add liquid search & jobs list.
This commit is contained in:
24
app/search/_layout.tsx
Normal file
24
app/search/_layout.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user