New issue
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
onSearch not firing #30
Comments
|
I changed it to this and it's still not firing - any ideas? |
I'm doing this in TypeScript, by the way. Could you show me an example of what a proper function would look like? |
@bvoelz19 I'm doing this in TS and it works properly 😉 |
Here's my code:
`import Search from "react-native-search-box";
export default class App extends Component {
onSearch = () => {
alert("!");
}
}`
For some reason, the onSearch method isn't firing even though the onCancel one is. What exactly causes the onSearch to fire? I am testing on a simulator, and pressing the 'Search' button on the iPhone keyboard isn't seeming to work.
The text was updated successfully, but these errors were encountered: