import { faSearch } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-native-fontawesome"; import { useNavigation } from "@react-navigation/native"; import React, { useState } from "react"; import { Image, StyleSheet, Text, TextInput, TouchableOpacity, View } from "react-native"; import obn from "../../../assets/obn.png"; const Header = ({product}) => { const [searchKeyword, setsearchKeyword] = useState(""); const navigation = useNavigation() // console.log(product); const Search = (e) => { setsearchKeyword(e); }; return ( navigation.navigate("Search")}> navigation.navigate("Search")} // placeholder="Search product or vendorss" // placeholderTextColor="#a5a5a5" // onChangeText={(e) => Search(e)} // // editable={false} // onFocus={() => navigation.navigate("Search")} // onPressIn={() => navigation.navigate("Search")} > Search... {/* */} ); }; const styles = StyleSheet.create({ container: { // flex: 1, // backgroundColor: "#fff", alignItems: "center", justifyContent: "center", width: "100%", top: 0, // position: "fixed", paddingVertical: 15, // paddingTop: 5, // boxShadow: '0px 0px 4px 0px rgba(0, 0, 0, 0.25)' }, wrapper: { flexDirection: "row", width: "95%", alignItems: "center", justifyContent: "space-around", margin: "auto", }, button: { padding: 15, }, imgLogo: { height: 30, width: 30, }, input: { backgroundColor: "#f7f7f7", padding: 12, paddingHorizontal: 20, borderRadius: 5, width: "85%", }, }); export default Header;