Every time I type something it closes the keyboard I've tried using onChangeText
and onChange
but nothing has changed
Parent component
const [searchText, setSearchText] = useState('');function handleSearchTextChange(e: NativeSyntheticEvent<TextInputChangeEventData>) { setSearchText(e.nativeEvent.text);}<PageHeader hasSearch={true} isLogout={true} searchTextInput={searchText} onSearchTextChange={handleSearchTextChange}/>
child component
<TextInput style={{width: 250}} autoCorrect={true} placeholder="Pesquisar..." value={searchTextInput} onChange={onSearchTextChange} />