component and from there i am triggering an onChangeText method to call a function on the parent so i could setState to the new value, but the keyboard keeps on hiding after every letter, what am i doing worng ?
here is the parent
<FlatList
data={ this.state.supervisors }
renderItem={ ({ item }) => <ListView page="Supervisor" user={ item } /> }
ListHeaderComponent={ () => <SearchBar on_change={ this.on_search_bar_change } /> }
keyExtractor={ item => item.id }
/>
and here is the stateless component
<TextInput
onChangeText={ (name) => props.on_change(name) }
placeholder="Search Name"
style={ styles.search_input }
/>
Please format the code you posted, by wrapping it in triple backticks. -> `
Обсуждают сегодня