import type { RefObject } from "react"; import { Pressable, TextInput, type TextInputInstance, View } from "react-native"; import { SymbolView } from "./AppSymbol"; import { useAndroidControlSizing } from "./useAndroidControlSizing"; export function MaterialSearchField({ inputRef, accessibilityLabel, clearAccessibilityLabel, placeholder, value, onChangeText, }: { readonly inputRef: RefObject; readonly accessibilityLabel: string; readonly clearAccessibilityLabel: string; readonly placeholder: string; readonly value: string; readonly onChangeText: (value: string) => void; }) { const { scale, mediumIconSize } = useAndroidControlSizing(); return ( {value.length > 0 ? ( { onChangeText(""); inputRef.current?.focus(); }} > ) : null} ); }