16 lines
458 B
TypeScript
16 lines
458 B
TypeScript
import { Feather } from "@expo/vector-icons";
|
|
import { InputForm } from "./inputForm";
|
|
|
|
export default function InputSearch({ onChange, width }: { onChange?: (val: string) => void, width?: number }) {
|
|
return (
|
|
<InputForm
|
|
type="default"
|
|
placeholder="Pencarian"
|
|
round
|
|
itemLeft={<Feather name="search" size={20} color="grey" />}
|
|
onChange={onChange}
|
|
width={width}
|
|
bg="white"
|
|
/>
|
|
)
|
|
} |