search component
This commit is contained in:
parent
ff0bb63367
commit
797c0f8fda
@ -1,11 +1,15 @@
|
|||||||
import {View, Text} from 'react-native'
|
import {View, Text} from 'react-native'
|
||||||
import React from 'react'
|
import React, {useState} from 'react'
|
||||||
import {useLocalSearchParams, usePathname} from "expo-router";
|
import {useLocalSearchParams, usePathname} from "expo-router";
|
||||||
|
|
||||||
const Search = () => {
|
const Search = () => {
|
||||||
const path = usePathname();
|
const path = usePathname();
|
||||||
const params = useLocalSearchParams<{query?: string}>();
|
const params = useLocalSearchParams<{query?: string}>();
|
||||||
|
const [search, setSearch] = useState(params.query);
|
||||||
|
|
||||||
|
const handleSearch = (text: string) => {
|
||||||
|
setSearch(text)
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
<Text>Search</Text>
|
<Text>Search</Text>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user