We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, if I add a clear icon, when I press it doesn't clear the text. I am testing with expo in IOS simulator
<SearchInput onChangeText={(term) => { this.searchUpdated(term) }} style={styles.searchInput} placeholder="Search" clearIcon={} /> {filteredProducts.map(product => { return ( <TouchableOpacity onPress={()=>alert(product.name)} key={product.slug} style={styles.productItem}> {product.name} ) })}
The text was updated successfully, but these errors were encountered:
Hi, @PaddyLock Let you use
<SearchInput onChangeText={this.searchUpdated} style={styles.searchInput} placeholder="Search" value={this.state.value} clearIcon={} />
Updating state fixes issue for me
Sorry, something went wrong.
@osdnk Yes that worked to add
value={this.state.value}
Is this a bug as 'value' is undocumented?
Yes. It's a hacky workaround
No branches or pull requests
Hi, if I add a clear icon, when I press it doesn't clear the text. I am testing with expo in IOS simulator
<SearchInput
onChangeText={(term) => { this.searchUpdated(term) }}
style={styles.searchInput}
placeholder="Search"
clearIcon={}
/>
{filteredProducts.map(product => {
return (
<TouchableOpacity onPress={()=>alert(product.name)} key={product.slug} style={styles.productItem}>
{product.name}
)
})}
The text was updated successfully, but these errors were encountered: