Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

Keyboard constantly closes with each typed on input child

$
0
0

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}        />

Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>